refactor (readonly for static objects in tests and file-scoped namespaces
This commit is contained in:
		| @@ -1,17 +1,16 @@ | ||||
| using ApplicationLayer.Services.Applicants.Models; | ||||
| using Bogus; | ||||
|  | ||||
| namespace VisaApi.Fakers.Applicants.Requests | ||||
| namespace VisaApi.Fakers.Applicants.Requests; | ||||
|  | ||||
| public sealed class NameModelFaker : Faker<NameModel> | ||||
| { | ||||
|     public sealed class NameModelFaker : Faker<NameModel> | ||||
|     public NameModelFaker() | ||||
|     { | ||||
|         public NameModelFaker() | ||||
|         { | ||||
|             RuleFor(m => m.FirstName, f => f.Name.FirstName()); | ||||
|  | ||||
|             RuleFor(m => m.Surname, f => f.Name.LastName()); | ||||
|  | ||||
|             RuleFor(m => m.Patronymic, f => f.Name.FirstName()); | ||||
|         } | ||||
|     } | ||||
| } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user