mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 21:10:32 +01:00
Calling and Stubbing Multiple Services #284
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @vermapraveen on GitHub (Jul 19, 2020).
First of all, thanks for this very useful lib. Planning to use in LoadTests, IntegrationTests.
I have started experiment with this, got question:
how to achieve multiple service call, as _mockServer.Urls gives only 1 url
My application makes multiple http calls to diff endpoints. currently I am able to stub 1 api call like below. I want to stub all of them so that I can test my app in isolation. please suggest.
@StefH commented on GitHub (Jul 19, 2020):
@vermapraveen
You can just use multiple URL's if you use the settings, see example:
https://github.com/WireMock-Net/WireMock.Net/blob/master/examples/WireMock.Net.Console.Net452.Classic/MainApp.cs#L49
@StefH commented on GitHub (Aug 1, 2020):
@vermapraveen
Does this answer your question?
@vermapraveen commented on GitHub (Aug 11, 2020):
yes, thanks
On Sat, Aug 1, 2020 at 9:55 AM Stef Heyenrath notifications@github.com
wrote:
--
Regards,
Praveen Verma