using AsbCloudDb.Model; using Bogus; namespace AsbCloudWebApi.IntegrationTests.TestFakers; public static class EntitiesFaker { public static Faker Deposit { get; } = new Faker() .RuleFor(d => d.Id, 0) .RuleFor(d => d.Caption, f => f.Random.String2(1, 50)) .RuleFor(d => d.Latitude, f => f.Random.Double(-90, 90)) .RuleFor(d => d.Longitude, f => f.Random.Double(-180, 180)) .RuleFor(d => d.Timezone, f => new SimpleTimezone { Hours = f.Random.Int(1, 12), IsOverride = f.Random.Bool() }); public static Faker Cluster { get; } = new Faker() .RuleFor(d => d.Id, 0) .RuleFor(d => d.Caption, f => f.Random.String2(1, 50)) .RuleFor(d => d.Latitude, f => f.Random.Double(-90, 90)) .RuleFor(d => d.Longitude, f => f.Random.Double(-180, 180)) .RuleFor(d => d.Timezone, f => new SimpleTimezone { Hours = f.Random.Int(1, 12), IsOverride = f.Random.Bool() }); public static Faker Well { get; } = new Faker() .RuleFor(d => d.Id, 0) .RuleFor(d => d.Caption, f => f.Random.String2(1, 50)) .RuleFor(d => d.Latitude, f => f.Random.Double(-90, 90)) .RuleFor(d => d.Longitude, f => f.Random.Double(-180, 180)) .RuleFor(d => d.Timezone, f => new SimpleTimezone { Hours = f.Random.Int(1, 12), IsOverride = f.Random.Bool() }); }