tests and fixes
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
using ApplicationLayer.InfrastructureServicesInterfaces;
|
||||
using ApplicationLayer.Services.Applicants.Models;
|
||||
using Bogus;
|
||||
using Domains;
|
||||
@@ -7,7 +6,7 @@ namespace VisaApi.Fakers.Applicants.Requests;
|
||||
|
||||
public sealed class PassportModelFaker : Faker<PassportModel>
|
||||
{
|
||||
public PassportModelFaker(IDateTimeProvider dateTimeProvider)
|
||||
public PassportModelFaker()
|
||||
{
|
||||
RuleFor(m => m.Issuer, f => f.Company.CompanyName());
|
||||
|
||||
@@ -15,9 +14,9 @@ public sealed class PassportModelFaker : Faker<PassportModel>
|
||||
f => f.Random.String(ConfigurationConstraints.PassportNumberLength, 'a', 'z'));
|
||||
|
||||
RuleFor(m => m.ExpirationDate,
|
||||
f => f.Date.Future(4, dateTimeProvider.Now()));
|
||||
f => f.Date.Future(4));
|
||||
|
||||
RuleFor(m => m.IssueDate,
|
||||
f => f.Date.Past(4, dateTimeProvider.Now()));
|
||||
f => f.Date.Past(4));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user