Skip to content

Commit

Permalink
Randomly seed Evaluate... on mandate
Browse files Browse the repository at this point in the history
  • Loading branch information
Philippluca committed Jan 7, 2025
1 parent eb47825 commit 087f8e1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Geopilot.Api/ContextExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ public static void SeedMandates(this Context context)
.RuleFor(o => o.Id, f => 0)
.RuleFor(o => o.Name, f => f.Commerce.ProductName())
.RuleFor(o => o.FileTypes, f => f.PickRandom(knownFileFormats, 4).Distinct().ToArray())
.RuleFor(o => o.EvaluatePrecursorDelivery, f => f.PickRandom<FieldEvaluationType>())
.RuleFor(o => o.EvaluatePartial, f => f.PickRandom<FieldEvaluationType>())
.RuleFor(o => o.EvaluateComment, f => f.PickRandom<FieldEvaluationType>())
.RuleFor(o => o.SpatialExtent, f => GetExtent())
.RuleFor(o => o.Organisations, f => f.PickRandom(context.Organisations.ToList(), 1).ToList())
.RuleFor(o => o.Deliveries, _ => new List<Delivery>());
Expand Down

0 comments on commit 087f8e1

Please sign in to comment.