How do I mock an HTTP dependency
  • 28 Nov 2022
  • 1 Minute to read
  • Contributors
  • Comment
  • Dark
    Light
  • PDF

How do I mock an HTTP dependency

  • Comment
  • Dark
    Light
  • PDF

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?