public static void InitializeServices(TestContext context) { var services = new ServiceCollection(); services.AddFlowRunner(); services.AddPamuCds(); var sp = services.BuildServiceProvider(); var flowFolderPath = new Uri(System.IO.Path.GetFullPath(@"Workflows")); _pamuCds = sp.GetRequiredService <XrmMockupCdsTrigger>(); _pamuCds.AddFlows(flowFolderPath); // Figure out how to get all json InitializeMockup(context); }
public static void InitializeServices(TestContext context) { var services = new ServiceCollection(); services.AddFlowRunner(); services.AddPamuCds(); services.AddFlowActionByName <GetEmailFromMarketing>("Run_a_Child_Flow"); // This stops the recursion or bad flow from running services.Configure <CdsFlowSettings>(x => x.DontExecuteFlows = new[] { "Recursiveflow-Contact-CB0D4934-F754-EB11-A812-000D3AB11E51.json" }); var sp = services.BuildServiceProvider(); var flowFolderPath = new Uri(System.IO.Path.GetFullPath(@"Workflows")); _pamuCds = sp.GetRequiredService <XrmMockupCdsTrigger>(); _pamuCds.AddFlows(flowFolderPath); InitializeMockup(context); }