feat: work on implementing UoW pattern
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user