Вытащил солюшен на уровень выше, чтобы прощё было дотнетить
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is failing
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	continuous-integration/drone/push Build is failing
				
			This commit is contained in:
		
							
								
								
									
										16
									
								
								VisaApiTests/Fakers/Applicants/Requests/NameModelFaker.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								VisaApiTests/Fakers/Applicants/Requests/NameModelFaker.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,16 @@ | ||||
| using ApplicationLayer.Services.Applicants.Models; | ||||
| using Bogus; | ||||
|  | ||||
| namespace VisaApi.Fakers.Applicants.Requests; | ||||
|  | ||||
| public sealed class NameModelFaker : Faker<NameModel> | ||||
| { | ||||
|     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()); | ||||
|         } | ||||
| } | ||||
| @@ -0,0 +1,22 @@ | ||||
| using ApplicationLayer.Services.Applicants.Models; | ||||
| using Bogus; | ||||
| using Domains; | ||||
|  | ||||
| namespace VisaApi.Fakers.Applicants.Requests; | ||||
|  | ||||
| public sealed class PassportModelFaker : Faker<PassportModel> | ||||
| { | ||||
|     public PassportModelFaker() | ||||
|     { | ||||
|             RuleFor(m => m.Issuer, f => f.Company.CompanyName()); | ||||
|  | ||||
|             RuleFor(m => m.Number, | ||||
|                 f => f.Random.String(ConfigurationConstraints.PassportNumberLength, 'a', 'z')); | ||||
|  | ||||
|             RuleFor(m => m.ExpirationDate, | ||||
|                 f => f.Date.Future(4)); | ||||
|  | ||||
|             RuleFor(m => m.IssueDate, | ||||
|                 f => f.Date.Past(4)); | ||||
|         } | ||||
| } | ||||
| @@ -0,0 +1,23 @@ | ||||
| using ApplicationLayer.Services.Applicants.Models; | ||||
| using Bogus; | ||||
|  | ||||
| namespace VisaApi.Fakers.Applicants.Requests; | ||||
|  | ||||
| public sealed class PlaceOfWorkModelFaker : Faker<PlaceOfWorkModel> | ||||
| { | ||||
|     public PlaceOfWorkModelFaker() | ||||
|     { | ||||
|             RuleFor(m => m.Name, f => f.Company.CompanyName()); | ||||
|  | ||||
|             RuleFor(m => m.PhoneNum, f => f.Phone.PhoneNumber("###########")); | ||||
|  | ||||
|             RuleFor(m => m.Address, | ||||
|                 f => new AddressModel | ||||
|                 { | ||||
|                     Country = f.Address.Country(), | ||||
|                     City = f.Address.City(), | ||||
|                     Street = f.Address.StreetName(), | ||||
|                     Building = f.Address.BuildingNumber() | ||||
|                 }); | ||||
|         } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user