Skip to content

Commit

Permalink
Fix seed
Browse files Browse the repository at this point in the history
  • Loading branch information
Lehats committed Dec 12, 2024
1 parent 186107b commit f9eb35f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/BdmsContextExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@ public static void SeedData(this BdmsContext context)
.RuleFor(o => o.ReferenceElevationType, _ => default!)
.RuleFor(o => o.BoreholeCodelists, _ => new Collection<BoreholeCodelist>())
.RuleFor(o => o.Codelists, _ => new Collection<Codelist>())
.RuleFor(o => o.Observations, _ => new Collection<Observation>())
.RuleFor(o => o.Geometry, f =>
{
var point = new Point(f.Random.Int(2477750, 2830750), f.Random.Int(1066750, 1310750));
Expand All @@ -199,6 +198,7 @@ public static void SeedData(this BdmsContext context)
.RuleFor(o => o.PrecisionLocationY, f => f.PickRandom(Enumerable.Range(0, 10)))
.RuleFor(o => o.PrecisionLocationXLV03, f => f.PickRandom(Enumerable.Range(0, 10)))
.RuleFor(o => o.PrecisionLocationYLV03, f => f.PickRandom(Enumerable.Range(0, 10)))
.RuleFor(o => o.Observations, _ => new Collection<Observation>())
.FinishWith((f, o) => { o.AlternateName = o.OriginalName; });

Borehole SeededBoreholes(int seed) => fakeBoreholes.UseSeed(seed).Generate();
Expand Down

0 comments on commit f9eb35f

Please sign in to comment.