From 087f8e140797d5bb3215c09147cd9753f27d8b15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20L=C3=BCthi?= Date: Tue, 7 Jan 2025 11:47:26 +0100 Subject: [PATCH] Randomly seed Evaluate... on mandate --- src/Geopilot.Api/ContextExtensions.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Geopilot.Api/ContextExtensions.cs b/src/Geopilot.Api/ContextExtensions.cs index 612645c7..9aab0626 100644 --- a/src/Geopilot.Api/ContextExtensions.cs +++ b/src/Geopilot.Api/ContextExtensions.cs @@ -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()) + .RuleFor(o => o.EvaluatePartial, f => f.PickRandom()) + .RuleFor(o => o.EvaluateComment, f => f.PickRandom()) .RuleFor(o => o.SpatialExtent, f => GetExtent()) .RuleFor(o => o.Organisations, f => f.PickRandom(context.Organisations.ToList(), 1).ToList()) .RuleFor(o => o.Deliveries, _ => new List());