refactor (readonly for static objects in tests and file-scoped namespaces
This commit is contained in:
		| @@ -3,20 +3,19 @@ using Bogus; | ||||
| using Domains; | ||||
| using Domains.VisaApplicationDomain; | ||||
|  | ||||
| namespace VisaApi.Fakers.VisaApplications | ||||
| namespace VisaApi.Fakers.VisaApplications; | ||||
|  | ||||
| /// <summary> | ||||
| /// Generates re-entry permissions | ||||
| /// </summary> | ||||
| public sealed class ReentryPermitFaker : Faker<ReentryPermit> | ||||
| { | ||||
|     /// <summary> | ||||
|     /// Generates re-entry permissions | ||||
|     /// </summary> | ||||
|     public sealed class ReentryPermitFaker : Faker<ReentryPermit> | ||||
|     public ReentryPermitFaker(IDateTimeProvider dateTimeProvider) | ||||
|     { | ||||
|         public ReentryPermitFaker(IDateTimeProvider dateTimeProvider) | ||||
|         { | ||||
|             RuleFor(p => p.Number, | ||||
|                 f => f.Random.String(ConfigurationConstraints.ReentryPermitNumberLength, 'a', 'z')); | ||||
|  | ||||
|             RuleFor(p => p.ExpirationDate, | ||||
|                 f => f.Date.Future(4, dateTimeProvider.Now())); | ||||
|         } | ||||
|     } | ||||
| } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user