WireMock-Net / WireMock.Net-docker

WireMock.Net-docker is a Docker image which runs WireMock.Net (a flexible library for stubbing and mocking web services)
MIT License
22 stars 6 forks source link

How do I consume it? #31

Open scarbon opened 3 years ago

scarbon commented 3 years ago

How do I consume it on an Integration test? on Every option there is generally a Start() for the server, but since is already app, how do you configure mappings?

StefH commented 3 years ago

This docker image starts without any mappings.

In this case you should post the mappings to the admin url.

This is explained here:

sumit1112 commented 3 years ago

Passing Mappings on production server via Post request is not feasible. Is there a way to pass static mappings file? I seriously need this.

StefH commented 3 years ago

Hello @sumit1112, this can be done by copying the mapping files in a __admin\mappings folder. See this link: https://github.com/WireMock-Net/WireMock.Net/wiki/Mapping