-
Print
-
Comment
-
DarkLight
-
PDF
How do I mock an HTTP dependency
This video will show how to mock an http endpoint when using the HTTP action in your workflow.
The command I ran to run the test in this video is:
dotnet test --filter FullyQualifiedName=logicapp.testing.unittests.Workflows.Echo_Postman.MsTest.Tests.Echo_Postman_GreenPath --logger:"console;verbosity=normal"
To run with the mock it is
dotnet test --filter FullyQualifiedName=logicapp.testing.unittests.Workflows.Echo_Postman.MsTest.TestsWithMock.Echo_Postman_WithMock --logger:"console;verbosity=normal"
Was this article helpful?