Вытащил солюшен на уровень выше, чтобы прощё было дотнетить
	
		
			
	
		
	
	
		
	
		
			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:
		
							
								
								
									
										21
									
								
								VisaApiTests/Fakers/VisaApplications/ReentryPermitFaker.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								VisaApiTests/Fakers/VisaApplications/ReentryPermitFaker.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,21 @@ | ||||
| using ApplicationLayer.InfrastructureServicesInterfaces; | ||||
| using Bogus; | ||||
| using Domains; | ||||
| using Domains.VisaApplicationDomain; | ||||
|  | ||||
| namespace VisaApi.Fakers.VisaApplications; | ||||
|  | ||||
| /// <summary> | ||||
| /// Generates re-entry permissions | ||||
| /// </summary> | ||||
| public sealed class ReentryPermitFaker : Faker<ReentryPermit> | ||||
| { | ||||
|     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