refactor (readonly for static objects in tests and file-scoped namespaces
This commit is contained in:
		| @@ -2,19 +2,18 @@ | ||||
| using Bogus; | ||||
| using Domains.VisaApplicationDomain; | ||||
|  | ||||
| namespace VisaApi.Fakers.VisaApplications | ||||
| namespace VisaApi.Fakers.VisaApplications; | ||||
|  | ||||
| /// <summary> | ||||
| /// Generates permissions to destination Country | ||||
| /// </summary> | ||||
| public sealed class PermissionToDestCountryFaker : Faker<PermissionToDestCountry> | ||||
| { | ||||
|     /// <summary> | ||||
|     /// Generates permissions to destination Country | ||||
|     /// </summary> | ||||
|     public sealed class PermissionToDestCountryFaker : Faker<PermissionToDestCountry> | ||||
|     public PermissionToDestCountryFaker(IDateTimeProvider dateTimeProvider) | ||||
|     { | ||||
|         public PermissionToDestCountryFaker(IDateTimeProvider dateTimeProvider) | ||||
|         { | ||||
|             RuleFor(p => p.Issuer, f => f.Company.CompanyName()); | ||||
|  | ||||
|             RuleFor(p => p.ExpirationDate, | ||||
|                 f => f.Date.Future(4, dateTimeProvider.Now())); | ||||
|         } | ||||
|     } | ||||
| } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user