WireMock.Net 1.0.2.4-preview-02

Prefix Reserved
This is a prerelease version of WireMock.Net.
There is a newer version of this package available.
See the version list below for details.
dotnet add package WireMock.Net --version 1.0.2.4-preview-02                
NuGet\Install-Package WireMock.Net -Version 1.0.2.4-preview-02                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="WireMock.Net" Version="1.0.2.4-preview-02" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add WireMock.Net --version 1.0.2.4-preview-02                
#r "nuget: WireMock.Net, 1.0.2.4-preview-02"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install WireMock.Net as a Cake Addin
#addin nuget:?package=WireMock.Net&version=1.0.2.4-preview-02&prerelease

// Install WireMock.Net as a Cake Tool
#tool nuget:?package=WireMock.Net&version=1.0.2.4-preview-02&prerelease                

WireMock.Net

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

Build status codecov Coverage Status GitHub issues GitHub stars

Name NuGet
WireMock.Net NuGet Badge
WireMock.Net.StandAlone NuGet Badge

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.

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 server = FluentMockServer.Start(port: 8443, ssl: true);

Obviously 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, not very straightforward and hence the following stackoverflow thread might come handy: Httplistener with https support

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp1.0 was computed.  netcoreapp1.1 was computed.  netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard1.3 is compatible.  netstandard1.4 was computed.  netstandard1.5 was computed.  netstandard1.6 was computed.  netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net452 is compatible.  net46 is compatible.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen30 was computed.  tizen40 was computed.  tizen60 was computed. 
Universal Windows Platform uap was computed.  uap10.0 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (24)

Showing the top 5 NuGet packages that depend on WireMock.Net:

Package Downloads
WireMock.Net.StandAlone

Lightweight StandAlone Http Mocking Server for .Net.

WireMock.Net.FluentAssertions

FluentAssertions extensions for WireMock.Net

Energinet.DataHub.Core.FunctionApp.TestCommon

[Release Notes](https://github.com/Energinet-DataHub/geh-core/blob/master/source/TestCommon/documents/release-notes/release-notes.md) [Documentation](https://github.com/Energinet-DataHub/geh-core/blob/master/source/TestCommon/documents/documentation.md)

WireMock.Net.Matchers.CSharpCode

A CSharpCodeMatcher which can be used to match WireMock.Net Requests using C# code.

Cortside.MockServer

Package Description

GitHub repositories (22)

Showing the top 5 popular GitHub repositories that depend on WireMock.Net:

Repository Stars
chocolatey/choco
Chocolatey - the package manager for Windows
restsharp/RestSharp
Simple REST and HTTP API Client for .NET
rabbitmq/rabbitmq-dotnet-client
RabbitMQ .NET client for .NET Standard 2.0+ and .NET 4.6.2+
WireMock-Net/WireMock.Net
WireMock.Net is a flexible product for stubbing and mocking web HTTP responses using advanced request matching and response templating. Based on the functionality from http://WireMock.org, but extended with more functionality.
CodeMazeBlog/CodeMazeGuides
The main repository for all the Code Maze guides
Version Downloads Last updated
1.6.11 4,046 1/2/2025
1.6.10 37,363 12/15/2024
1.6.9 39,388 12/6/2024
1.6.8 82,255 11/24/2024
1.6.7 315,643 10/17/2024
1.6.7-preview-02 812 10/6/2024
1.6.7-preview-01 304 10/2/2024
1.6.6 175,462 10/1/2024
1.6.5 67,051 9/28/2024
1.6.4 36,306 9/25/2024
1.6.3 230,901 9/7/2024
1.6.2 45,184 9/4/2024
1.6.1 168,045 8/22/2024
1.6.0 78,302 8/16/2024
1.5.62 280,643 7/27/2024
1.5.61 235 7/27/2024
1.5.60 280,257 7/9/2024
1.5.59 121,049 6/26/2024
1.5.58 206,347 6/8/2024
1.5.57 45,353 6/4/2024
1.5.56 55,066 6/3/2024
1.5.55 132,964 5/22/2024
1.5.54 50,137 5/18/2024
1.5.53 180,807 5/8/2024
1.5.52 457,913 4/6/2024
1.5.51 254,658 3/20/2024
1.5.50 779 3/20/2024
1.5.49 278,992 3/6/2024
1.5.48 233,570 2/17/2024
1.5.47 430,206 1/25/2024
1.5.46 496,368 12/23/2023
1.5.45 31,652 12/21/2023
1.5.44 64,987 12/14/2023
1.5.43 72,507 12/11/2023
1.5.42 16,914 12/9/2023
1.5.41 92,893 12/4/2023
1.5.40 321,890 11/7/2023
1.5.39 363,908 10/9/2023
1.5.38 1,474 10/9/2023
1.5.37 127,055 9/27/2023
1.5.36 430,937 9/21/2023
1.5.35 429,954 8/19/2023
1.5.34 200,614 8/4/2023
1.5.32 449,663 7/15/2023
1.5.31 124,567 7/8/2023
1.5.30 191,203 6/28/2023
1.5.29 84,634 6/22/2023
1.5.28 246,757 6/11/2023
1.5.27 72,438 6/3/2023
1.5.26 285,940 5/25/2023
1.5.25 261,023 5/13/2023
1.5.24 137,464 5/7/2023
1.5.23 160,505 4/23/2023
1.5.22 341,773 4/8/2023
1.5.21 178,330 3/22/2023
1.5.20 55,928 3/19/2023
1.5.19 4,884 3/17/2023
1.5.18 94,931 3/9/2023
1.5.17 97,554 2/25/2023
1.5.16 262,755 2/6/2023
1.5.15 127,467 1/29/2023
1.5.14 33,018 1/24/2023
1.5.13 607,513 12/11/2022
1.5.12 94,629 12/3/2022
1.5.11 72,141 11/24/2022
1.5.10 372,208 11/6/2022
1.5.9 77,209 10/29/2022
1.5.8 168,522 10/16/2022
1.5.7 72,476 10/11/2022
1.5.6 403,739 9/12/2022
1.5.5 72,813 9/3/2022
1.5.4 86,106 8/24/2022
1.5.3 246,069 7/29/2022
1.5.2 51,191 7/24/2022
1.5.1 164,432 7/8/2022
1.5.0 269,359 6/10/2022
1.4.43 278,003 5/21/2022
1.4.42 200,753 5/13/2022
1.4.41 260,031 4/22/2022
1.4.40 370,539 3/26/2022
1.4.39 5,099 3/25/2022
1.4.38 109,776 3/12/2022
1.4.37 90,742 3/2/2022
1.4.36 14,297 2/25/2022
1.4.35 134,663 2/9/2022
1.4.34 243,292 1/27/2022
1.4.33 10,013 1/24/2022
1.4.32 88,176 1/17/2022
1.4.31 84,495 1/6/2022
1.4.30 66,281 12/25/2021
1.4.29 123,507 12/12/2021
1.4.28 76,777 12/1/2021
1.4.27 138,216 11/17/2021
1.4.26 151,712 11/4/2021
1.4.25 52,147 10/27/2021
1.4.24 35,253 10/20/2021
1.4.23 1,024,728 9/27/2021
1.4.22 46,391 9/22/2021
1.4.21 139,970 9/16/2021
1.4.20 319,190 8/6/2021
1.4.19 12,482 8/4/2021
1.4.18 152,986 7/10/2021
1.4.17 9,178 7/7/2021
1.4.16 269,122 6/5/2021
1.4.15 106,485 5/19/2021
1.4.14 91,307 5/11/2021
1.4.13 62,908 4/26/2021
1.4.12 30,897 4/22/2021
1.4.11 21,985 4/18/2021
1.4.10 18,423 4/15/2021
1.4.9 70,972 3/31/2021
1.4.8 96,902 3/24/2021
1.4.7 14,144 3/21/2021
1.4.6 136,951 2/26/2021
1.4.5 95,512 2/11/2021
1.4.4 12,001 2/9/2021
1.4.3 27,922 2/5/2021
1.4.2 43,778 1/24/2021
1.4.1 20,441 1/19/2021
1.4.0 36,887 1/12/2021
1.3.10 89,495 12/23/2020
1.3.9 96,070 12/8/2020
1.3.8 15,985 12/3/2020
1.3.7 95,992 11/17/2020
1.3.6 25,117 11/10/2020
1.3.5 13,372 11/4/2020
1.3.4 195,387 10/17/2020
1.3.3 7,009 10/15/2020
1.3.2 9,336 10/14/2020
1.3.1 77,865 9/30/2020
1.3.0 26,998 9/29/2020
1.2.18 392,402 8/13/2020
1.2.17 27,128 8/1/2020
1.2.16 50,793 7/27/2020
1.2.15 51,861 7/19/2020
1.2.14 180,804 7/9/2020
1.2.13 3,268 7/9/2020
1.2.12 183,814 5/23/2020
1.2.11 12,649 5/18/2020
1.2.10 4,114 5/17/2020
1.2.9 15,450 5/14/2020
1.2.8 27,824 5/4/2020
1.2.7 6,209 4/30/2020
1.2.6 8,186 4/29/2020
1.2.5 98,817 4/17/2020
1.2.4 17,043 4/10/2020
1.2.3 96,021 4/1/2020
1.2.2 38,343 3/25/2020
1.2.1 33,352 3/17/2020 1.2.1 is deprecated because it has critical bugs.
1.2.0 5,658 3/14/2020 1.2.0 is deprecated because it has critical bugs.
1.1.10 20,296 3/5/2020
1.1.9 31,854 2/25/2020
1.1.8 7,894 2/22/2020
1.1.7 56,610 2/6/2020
1.1.6 22,841 1/27/2020
1.1.5 5,673 1/25/2020
1.1.4 2,966 1/25/2020
1.1.3 18,689 1/22/2020
1.1.2 28,264 1/9/2020
1.1.1 3,132 1/9/2020
1.1.0 45,255 12/27/2019
1.0.43 11,720 12/26/2019
1.0.42 59,579 12/15/2019
1.0.41 3,241 12/14/2019
1.0.40 21,084 12/9/2019
1.0.39 3,603 12/7/2019
1.0.38 22,687 11/30/2019
1.0.37 149,466 11/8/2019
1.0.36 43,409 10/26/2019
1.0.36-ci-12100 2,248 11/18/2019
1.0.35 22,859 10/25/2019
1.0.34 34,020 10/22/2019
1.0.33 16,483 10/12/2019
1.0.32 98,034 9/20/2019
1.0.31 4,389 9/19/2019
1.0.30 49,793 9/1/2019
1.0.29 31,051 8/23/2019
1.0.28 8,735 8/20/2019
1.0.27 11,236 8/14/2019
1.0.26 42,297 8/11/2019
1.0.25 37,458 7/23/2019
1.0.24 6,691 7/22/2019
1.0.23 23,332 7/16/2019
1.0.22 10,426 7/15/2019
1.0.20 59,639 6/17/2019
1.0.19 3,556 6/15/2019
1.0.18 56,422 6/10/2019
1.0.17 13,077 6/5/2019
1.0.16 48,189 5/16/2019
1.0.15 35,672 5/4/2019
1.0.14 22,362 4/20/2019
1.0.13 19,085 4/11/2019
1.0.12 67,634 4/5/2019
1.0.11 5,847 3/30/2019
1.0.10 5,983 3/27/2019
1.0.9 9,516 3/25/2019
1.0.8 40,067 3/12/2019
1.0.7 72,482 1/19/2019
1.0.6.1 13,708 1/10/2019
1.0.6 14,332 12/15/2018
1.0.5 10,942 12/7/2018
1.0.4.21 30,335 11/30/2018
1.0.4.20 55,432 11/7/2018
1.0.4.19 29,434 10/31/2018
1.0.4.18 15,733 10/27/2018
1.0.4.17 42,073 9/22/2018
1.0.4.16 193,749 9/11/2018
1.0.4.15 5,325 9/4/2018
1.0.4.14 6,528 9/2/2018
1.0.4.13 3,724 8/31/2018
1.0.4.12 5,763 8/23/2018
1.0.4.11 4,088 8/20/2018
1.0.4.10 38,514 8/14/2018
1.0.4.9 5,669 8/8/2018
1.0.4.8 22,196 7/23/2018
1.0.4.7 4,749 7/19/2018
1.0.4.6 5,218 7/18/2018
1.0.4.5 7,312 7/17/2018
1.0.4.4 16,456 7/1/2018
1.0.4.3 3,862 6/29/2018
1.0.4.2 6,565 6/26/2018
1.0.4.1 4,645 6/25/2018
1.0.4 16,262 6/23/2018
1.0.3.20 40,005 5/29/2018
1.0.3.19 4,301 5/28/2018
1.0.3.18 4,092 5/25/2018
1.0.3.17 13,073 5/16/2018
1.0.3.16 23,163 4/15/2018
1.0.3.15 12,781 4/5/2018
1.0.3.14 4,294 4/1/2018
1.0.3.13 37,980 3/24/2018
1.0.3.11 5,806 3/20/2018
1.0.3.10 7,592 3/17/2018
1.0.3.9 5,068 3/15/2018
1.0.3.8 9,127 3/10/2018
1.0.3.7 4,484 3/9/2018
1.0.3.6 3,681 3/8/2018
1.0.3.5 4,712 3/8/2018
1.0.3.4 4,709 3/4/2018
1.0.3.3 5,819 2/24/2018
1.0.3.2 25,170 2/14/2018
1.0.3.1 3,603 2/14/2018
1.0.3 7,443 2/5/2018
1.0.2.13 14,995 1/23/2018
1.0.2.12 5,263 1/16/2018
1.0.2.11 14,882 12/20/2017
1.0.2.10 4,890 12/12/2017
1.0.2.9 5,640 12/7/2017
1.0.2.8 5,990 11/23/2017
1.0.2.7 4,719 11/18/2017
1.0.2.6 4,812 10/30/2017
1.0.2.5 3,916 10/24/2017
1.0.2.4 21,803 10/10/2017
1.0.2.4-preview-02 3,368 9/30/2017
1.0.2.4-preview-01 3,172 8/11/2017
1.0.2.3 20,377 8/8/2017
1.0.2.3-preview2-final-03 2,962 8/10/2017
1.0.2.3-preview2-final-02 2,828 8/10/2017
1.0.2.3-preview2-final-01 2,951 8/10/2017
1.0.2.1 3,812 6/14/2017
1.0.2 8,889 5/5/2017
1.0.1.5 5,009 3/21/2017
1.0.1.4 2,746 3/21/2017
1.0.1.2 2,648 2/27/2017
1.0.1.1 2,650 2/10/2017
1.0.0 17,759 1/24/2017