Stef Heyenrath a9c0c6b670 Support running WireMock.Net as a sub-app in IIS (#164) (#158)
* Update examples (#158)

* IIS debug

* PathBase logic

* 1.0.4.5-preview-01

* Fix project and readme

* Fix issues

* fix picture alignment

* Add IIS publish examples

* 1.0.4.5
2018-07-17 08:20:44 +02:00
2018-03-17 13:20:18 +01:00
2017-01-17 20:44:53 +01:00
2017-02-05 10:54:27 +01:00
2018-07-15 11:14:50 +02:00
2018-07-01 11:10:34 +02:00
2018-03-15 22:53:23 +01:00
2018-03-17 13:20:18 +01:00
2018-03-04 11:30:50 +01:00
2018-07-01 11:10:34 +02:00
2017-01-17 20:44:53 +01:00
2018-07-15 11:45:55 +02:00
2018-03-17 13:20:18 +01:00
2018-04-15 14:02:45 +02:00
2017-01-20 21:25:18 +01:00

WireMock.Net

A C# .NET version based on mock4net which mimics the functionality from the JAVA based WireMock.org.

Info

Chat Gitter
Issues GitHub issues
Build Build status
Sonar  
 Sonar Quality Gate Sonar Quality Gate
 Sonar Bugs Sonar Bugs
 Sonar Code Smells Sonar Code Smells
 Sonar Coverage Sonar Coverage
 Coveralls.io Coverage Status
Nuget  
 WireMock.Net NuGet Badge WireMock.Net
 WireMock.Net.StandAlone NuGet Badge WireMock.Net.StandAlone

Frameworks

The following frameworks are supported:

  • net 4.5.2 and up
  • net 4.6 and up
  • netstandard 1.3
  • netstandard 2.0

Build info

To build you need:

Stubbing

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

Using WireMock 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.

SSL

You can start a standalone mock server listening for HTTPS requests. To do so, there is just a flag to set when creating the server:

var server1 = FluentMockServer.Start(port: 8443, ssl: true);

// or like this

var server2 = FluentMockServer.Start(new FluentMockServerSettings
{
    Urls = new[] { "http://localhost:9091", "https://localhost:9443" }
});
  • In case when using net 4.5.2 or net 4.6, you need a certificate registered on your box, properly associated with your application and the port number that will be used. This is not really specific to WireMock.Net, not very straightforward and hence the following stackoverflow thread might come handy: Httplistener with https support.

  • When using netstandard, WireMock.Net uses a self signed certificate (which can be overriden if you like) to host https urls.

Description
No description provided
Readme Apache-2.0 17 MiB
Latest
2025-12-25 15:01:19 +01:00
Languages
C# 99.4%
CSS 0.3%
HTML 0.3%