Skip to content
Stef Heyenrath edited this page May 12, 2017 · 15 revisions

Welcome to the WireMock.Net wiki

Stubbing & Request Matching

A core feature of WireMock is the ability to return canned HTTP responses for requests matching criteria, see Wiki : Stubbing & Request Matching.

Proxying

WireMock.Net has the ability to selectively proxy requests through to other hosts. This supports a proxy/intercept setup where requests are by default proxied to another (possibly real, live) service, but where specific stubs are configured these are returned in place of the remote service’s response. Responses that the live service can’t be forced to generate on demand can thus be injected for testing. Wiki : Proxying.

Record (via proxy) and Save

WireMock.Net has the ability to create stub mappings by recording them while you send requests. This can be used to quickly capture a collection of responses from a real service then use them offline in your tests. Wiki : RecordAndSave.

Using WireMock.Net in UnitTest framework

You can use your favorite test framework and use WireMock within your tests, see Wiki : UnitTesting.

Admin API Reference

The WireMock admin API provides functionality to define the mappings via a http interface, see Wiki : Admin API Reference.

WireMock as a standalone process

This is quite straight forward to launch a mock server within a console application, see Wiki : standalone.

Clone this wiki locally