Edit

Share via


TestWorkflowRunTriggerResult class

Namespace: Microsoft.Azure.Workflows.UnitTesting.Definitions

This class represents the result from the trigger execution in a Standard logic app workflow run during unit test execution. The class also provides specific functionality for trigger operations.

Usage

// Check trigger status and code
Assert.AreEqual(expected: "200", actual: testFlowRun.Trigger.Code);
Assert.AreEqual(expected: TestWorkflowStatus.Succeeded, actual: testFlowRun.Trigger.Status);

// Check trigger output value
Assert.AreEqual(expected: "Test", actual: testFlowRun.Trigger.Outputs["outputParam"].Value<string>());

// Check trigger error
Assert.IsNull(testFlowRun.Trigger.Error);

Properties

Name Description Type Required
Name The trigger name string Yes
Inputs The trigger execution inputs JToken No
Outputs The trigger execution outputs JToken No
Code The trigger status code string No
Status The trigger status TestWorkflowStatus Yes
Error The trigger error TestErrorInfo No