feat: work on implementing UoW pattern

This commit is contained in:
Stevan Freeborn
2024-08-20 23:42:20 -05:00
parent c65dc6dab6
commit 00994cd4d9
21 changed files with 606 additions and 20 deletions
@@ -0,0 +1,22 @@
using Bogus;
namespace SanctionsSearch.Worker.Tests.Fakes;
class SdnFaker : Faker<Sdn>
{
public SdnFaker()
{
RuleFor(x => x.Id, f => f.Random.Int(1, int.MaxValue));
RuleFor(x => x.Name, f => f.Person.FullName);
RuleFor(x => x.Type, f => f.Lorem.Word());
RuleFor(x => x.Program, f => f.Lorem.Word());
RuleFor(x => x.Title, f => f.Lorem.Word());
RuleFor(x => x.CallSign, f => f.Lorem.Word());
RuleFor(x => x.VesselType, f => f.Lorem.Word());
RuleFor(x => x.Tonnage, f => f.Lorem.Word());
RuleFor(x => x.GrossRegisteredTonnage, f => f.Lorem.Word());
RuleFor(x => x.VesselFlag, f => f.Lorem.Word());
RuleFor(x => x.VesselOwner, f => f.Lorem.Word());
RuleFor(x => x.Remarks, f => f.Lorem.Word());
}
}