From d58255ed6fceebcab2dead9a5ba04547efcdf529 Mon Sep 17 00:00:00 2001 From: prtsie Date: Tue, 17 Sep 2024 20:49:43 +0300 Subject: [PATCH] finished ApplicantFaker.cs --- SchengenVisaApi/VisaApiTests/Fakers/ApplicantFaker.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/SchengenVisaApi/VisaApiTests/Fakers/ApplicantFaker.cs b/SchengenVisaApi/VisaApiTests/Fakers/ApplicantFaker.cs index 12d2a73..dd68b6f 100644 --- a/SchengenVisaApi/VisaApiTests/Fakers/ApplicantFaker.cs +++ b/SchengenVisaApi/VisaApiTests/Fakers/ApplicantFaker.cs @@ -2,13 +2,12 @@ using ApplicationLayer.InfrastructureServicesInterfaces; using Bogus; using Domains; using Domains.ApplicantDomain; -using Domains.Users; namespace VisaApi.Fakers { public sealed class ApplicantFaker : Faker { - public ApplicantFaker(User user, IDateTimeProvider dateTimeProvider) + public ApplicantFaker(IDateTimeProvider dateTimeProvider) { RuleFor(a => a.Citizenship, f => f.Address.Country()); @@ -38,12 +37,12 @@ namespace VisaApi.Fakers RuleFor(a => a.MaritalStatus, f => f.Random.Enum()); - RuleFor(a => a.UserId, () => user.Id); - RuleFor(a => a.CitizenshipByBirth, f => f.Address.Country()); RuleFor(a => a.CityOfBirth, f => f.Address.City()); + RuleFor(a => a.CountryOfBirth, f => f.Address.Country()); + RuleFor(a => a.IsNonResident, f => f.Random.Bool()); RuleFor(a => a.PlaceOfWork, f