Files
schengen-visa/SchengenVisaApi/VisaApiTests/Fakers/Applicants/Requests/PassportModelFaker.cs
2025-05-11 18:28:33 +03:00

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));
}
}