FlowAssert.AssertActionWasTriggered(flowResult, actionName);
FlowAssert.AssertFlowParameters(flowResult, actionName,
// TODO: Overwrite ContainsKey to also include children dicts for easier use
x => x.ContainsKey("parameters/NotificationEmailDefinition"),
x => x["parameters/NotificationEmailDefinition/notificationSubject"]
.Equals(new ValueContainer("A new Account have been added")),
x => x["parameters/NotificationEmailDefinition/notificationSubject"].GetValue<string>() ==
"A new Account have been added");
Assert.IsTrue(flowResult.ActionStates.ContainsKey(actionName), "Action is expected to be triggered.");
Assert.NotNull(flowResult.ActionStates[actionName].ActionInput?["parameters"], "Action input is expected.");
Overwrite ContainsKey to also include children dicts for easier use
https://github.com/thygesteffensen/PowerAutomateMockUp/blob/cb9557335375c289f23f454d948de9edf7bf7253/Test/FullFlowTestV2.cs#L58
057a1a0c33beda207c1a2e34743c462029df4a98