23 lines
		
	
	
		
			600 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			600 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| 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));
 | |
|         }
 | |
| }
 |