WireMock.Net 1.5.27

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
.NET 5.0 .NET Core 3.1 .NET Standard 1.3 .NET Framework 4.5.1
dotnet add package WireMock.Net --version 1.5.27
NuGet\Install-Package WireMock.Net -Version 1.5.27
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.5.27" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add WireMock.Net --version 1.5.27
#r "nuget: WireMock.Net, 1.5.27"
#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.5.27

// Install WireMock.Net as a Cake Tool
#tool nuget:?package=WireMock.Net&version=1.5.27

WireMock.Net

Lightweight Http Mocking Server for .NET, inspired by [WireMock(http://WireMock.org) from the Java landscape.

⭐ Key Features

  • HTTP response stubbing, matchable on URL/Path, headers, cookies and body content patterns
  • Library can be used in unit tests and integration tests
  • Runs as a standalone process, as windows service, as Azure/IIS or as docker
  • Configurable via a fluent C# .NET API, JSON files and JSON over HTTP
  • Record/playback of stubs (proxying)
  • Per-request conditional proxying
  • Stateful behaviour simulation
  • Response templating / transformation using Handlebars and extensions
  • Can be used locally or in CI/CD scenarios

⭐ Stubbing

A core feature of WireMock.Net is the ability to return predefined HTTP responses for requests matching criteria. See Wiki : Stubbing.

⭐ Request Matching

WireMock.Net support advanced request-matching logic, see Wiki : Request Matching.

⭐ Response Templating

The response which is returned WireMock.Net can be changed using templating. This is described here Wiki : Response Templating.

⭐ Admin API Reference

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

⭐ Using

WireMock.Net can be used in several ways:

UnitTesting

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

As a dotnet tool

It's simple to install WireMock.Net as (global) dotnet tool, see Wiki : dotnet tool.

As standalone process / console application

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

As a Windows Service

You can also run WireMock.Net as a Windows Service, follow this WireMock-as-a-Windows-Service.

As a Web Job in Azure or application in IIS

See this link WireMock-as-a-(Azure)-Web-App

In a docker container

There is also a Linux and Windows-Nano container available at hub.docker.com. For more details see also Docker.

HTTPS / SSL

More details on using HTTPS (SSL) can be found here Wiki : HTTPS

📚 Documentation

For more info, see also this WIKI page: What is WireMock.Net.

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 is compatible.  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 is compatible.  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. 
.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 is compatible. 
.NET Standard netstandard1.3 is compatible.  netstandard1.4 was computed.  netstandard1.5 was computed.  netstandard1.6 was computed.  netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net451 is compatible.  net452 is compatible.  net46 is compatible.  net461 is compatible.  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)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (16)

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

Package Downloads
WireMock.Net.StandAlone The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

Lightweight StandAlone Http Mocking Server for .Net.

WireMock.Net.Matchers.CSharpCode The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

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

ConnectingApps.IntegrationFixture

An AutoFixture inspired package to create instances for integration testing (not unit testing). Just create an instance of the Fixture class and this library does the work for you to trigger your code in the Startup and Program class. There is a create method to create a test instance and a freeze method to create external dependencies (services) with WireMock.NET

Cortside.MockServer

Package Description

Be.Stateless.BizTalk.ServiceModel.NUnit The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

BizTalk.Factory's WCF service model NUnit-based test library for general purpose Biztalk Server development.

GitHub repositories (12)

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

Repository Stars
Avanade/Liquid-Application-Framework
Liquid Application Framework documentation, useful links and sample project
mehdihadeli/ecommerce-microservices
🛍️ A practical e-commerce microservices, built with .Net 7, Domain-Driven Design, CQRS, Vertical Slice Architecture, Event-Driven Architecture, and the latest technologies.
axzxs2001/Asp.NetCoreExperiment
原来所有项目都移动到**OleVersion**目录下进行保留。新的案例装以.net 5.0为主,一部分对以前案例进行升级,一部分将以前的工作经验总结出来,以供大家参考!
Green-Software-Foundation/carbon-aware-sdk
Carbon-Aware SDK
maxmind/GeoIP2-dotnet
MaxMind GeoIP2 .NET API
Version Downloads Last updated
1.5.27 724 6/3/2023
1.5.26 9,542 5/25/2023
1.5.25 28,341 5/13/2023
1.5.24 12,479 5/7/2023
1.5.23 46,592 4/23/2023
1.5.22 78,353 4/8/2023
1.5.21 80,474 3/22/2023
1.5.20 17,579 3/19/2023
1.5.19 2,045 3/17/2023
1.5.18 30,201 3/9/2023
1.5.17 50,600 2/25/2023
1.5.16 133,006 2/6/2023
1.5.15 77,354 1/29/2023
1.5.14 22,432 1/24/2023
1.5.13 238,815 12/11/2022
1.5.12 51,334 12/3/2022
1.5.11 39,742 11/24/2022
1.5.10 182,156 11/6/2022
1.5.9 46,692 10/29/2022
1.5.8 93,923 10/16/2022
1.5.7 41,188 10/11/2022
1.5.6 167,838 9/12/2022
1.5.5 38,254 9/3/2022
1.5.4 52,264 8/24/2022
1.5.3 150,330 7/29/2022
1.5.2 41,949 7/24/2022
1.5.1 80,590 7/8/2022
1.5.0 149,121 6/10/2022
1.4.43 172,176 5/21/2022
1.4.42 136,022 5/13/2022
1.4.41 122,078 4/22/2022
1.4.40 224,861 3/26/2022
1.4.39 2,323 3/25/2022
1.4.38 77,004 3/12/2022
1.4.37 70,099 3/2/2022
1.4.36 10,848 2/25/2022
1.4.35 97,622 2/9/2022
1.4.34 153,975 1/27/2022
1.4.33 5,528 1/24/2022
1.4.32 63,256 1/17/2022
1.4.31 47,764 1/6/2022
1.4.30 36,493 12/25/2021
1.4.29 87,118 12/12/2021
1.4.28 54,581 12/1/2021
1.4.27 111,937 11/17/2021
1.4.26 84,035 11/4/2021
1.4.25 39,570 10/27/2021
1.4.24 22,962 10/20/2021
1.4.23 979,473 9/27/2021
1.4.22 40,766 9/22/2021
1.4.21 57,863 9/16/2021
1.4.20 241,184 8/6/2021
1.4.19 9,222 8/4/2021
1.4.18 112,242 7/10/2021
1.4.17 6,619 7/7/2021
1.4.16 235,438 6/5/2021
1.4.15 85,195 5/19/2021
1.4.14 77,520 5/11/2021
1.4.13 49,771 4/26/2021
1.4.12 25,078 4/22/2021
1.4.11 18,067 4/18/2021
1.4.10 15,465 4/15/2021
1.4.9 57,573 3/31/2021
1.4.8 87,856 3/24/2021
1.4.7 11,144 3/21/2021
1.4.6 119,472 2/26/2021
1.4.5 57,233 2/11/2021
1.4.4 7,878 2/9/2021
1.4.3 14,888 2/5/2021
1.4.2 33,713 1/24/2021
1.4.1 17,652 1/19/2021
1.4.0 25,763 1/12/2021
1.3.10 61,489 12/23/2020
1.3.9 86,903 12/8/2020
1.3.8 10,692 12/3/2020
1.3.7 83,183 11/17/2020
1.3.6 18,238 11/10/2020
1.3.5 10,966 11/4/2020
1.3.4 162,341 10/17/2020
1.3.3 5,012 10/15/2020
1.3.2 5,076 10/14/2020
1.3.1 58,057 9/30/2020
1.3.0 22,874 9/29/2020
1.2.18 314,969 8/13/2020
1.2.17 24,059 8/1/2020
1.2.16 37,280 7/27/2020
1.2.15 43,854 7/19/2020
1.2.14 120,806 7/9/2020
1.2.13 928 7/9/2020
1.2.12 158,119 5/23/2020
1.2.11 9,774 5/18/2020
1.2.10 2,246 5/17/2020
1.2.9 12,260 5/14/2020
1.2.8 24,522 5/4/2020
1.2.7 3,519 4/30/2020
1.2.6 6,289 4/29/2020
1.2.5 85,648 4/17/2020
1.2.4 13,308 4/10/2020
1.2.3 82,969 4/1/2020
1.2.2 32,406 3/25/2020
1.2.1 29,539 3/17/2020
1.2.0 3,750 3/14/2020
1.1.10 16,032 3/5/2020
1.1.9 29,009 2/25/2020
1.1.8 5,227 2/22/2020
1.1.7 46,156 2/6/2020
1.1.6 20,514 1/27/2020
1.1.5 3,791 1/25/2020
1.1.4 1,032 1/25/2020
1.1.3 13,544 1/22/2020
1.1.2 25,714 1/9/2020
1.1.1 1,137 1/9/2020
1.1.0 34,557 12/27/2019
1.0.43 8,901 12/26/2019
1.0.42 47,514 12/15/2019
1.0.41 1,134 12/14/2019
1.0.40 18,479 12/9/2019
1.0.39 1,581 12/7/2019
1.0.38 16,224 11/30/2019
1.0.37 93,253 11/8/2019
1.0.36 36,066 10/26/2019
1.0.36-ci-12100 522 11/18/2019
1.0.35 14,996 10/25/2019
1.0.34 25,606 10/22/2019
1.0.33 13,249 10/12/2019
1.0.32 86,704 9/20/2019
1.0.31 2,670 9/19/2019
1.0.30 44,976 9/1/2019
1.0.29 27,957 8/23/2019
1.0.28 6,805 8/20/2019
1.0.27 8,902 8/14/2019
1.0.26 38,980 8/11/2019
1.0.25 33,442 7/23/2019
1.0.24 4,915 7/22/2019
1.0.23 17,466 7/16/2019
1.0.22 8,462 7/15/2019
1.0.20 49,848 6/17/2019
1.0.19 1,671 6/15/2019
1.0.18 47,161 6/10/2019
1.0.17 11,222 6/5/2019
1.0.16 43,315 5/16/2019
1.0.15 32,018 5/4/2019
1.0.14 20,359 4/20/2019
1.0.13 14,918 4/11/2019
1.0.12 38,349 4/5/2019
1.0.11 3,777 3/30/2019
1.0.10 4,042 3/27/2019
1.0.9 7,636 3/25/2019
1.0.8 34,458 3/12/2019
1.0.7 65,391 1/19/2019
1.0.6.1 11,702 1/10/2019
1.0.6 12,447 12/15/2018
1.0.5 9,193 12/7/2018
1.0.4.21 25,683 11/30/2018
1.0.4.20 44,112 11/7/2018
1.0.4.19 25,294 10/31/2018
1.0.4.18 12,657 10/27/2018
1.0.4.17 34,127 9/22/2018
1.0.4.16 187,319 9/11/2018
1.0.4.15 3,199 9/4/2018
1.0.4.14 4,282 9/2/2018
1.0.4.13 1,419 8/31/2018
1.0.4.12 3,511 8/23/2018
1.0.4.11 2,025 8/20/2018
1.0.4.10 24,246 8/14/2018
1.0.4.9 3,559 8/8/2018
1.0.4.8 19,392 7/23/2018
1.0.4.7 2,296 7/19/2018
1.0.4.6 3,074 7/18/2018
1.0.4.5 4,544 7/17/2018
1.0.4.4 12,665 7/1/2018
1.0.4.3 1,396 6/29/2018
1.0.4.2 4,063 6/26/2018
1.0.4.1 2,176 6/25/2018
1.0.4 13,829 6/23/2018
1.0.3.20 36,384 5/29/2018
1.0.3.19 1,703 5/28/2018
1.0.3.18 1,580 5/25/2018
1.0.3.17 7,896 5/16/2018
1.0.3.16 20,896 4/15/2018
1.0.3.15 10,516 4/5/2018
1.0.3.14 1,958 4/1/2018
1.0.3.13 26,948 3/24/2018
1.0.3.11 3,277 3/20/2018
1.0.3.10 5,302 3/17/2018
1.0.3.9 2,643 3/15/2018
1.0.3.8 6,341 3/10/2018
1.0.3.7 1,987 3/9/2018
1.0.3.6 1,424 3/8/2018
1.0.3.5 2,365 3/8/2018
1.0.3.4 2,331 3/4/2018
1.0.3.3 3,418 2/24/2018
1.0.3.2 21,969 2/14/2018
1.0.3.1 1,139 2/14/2018
1.0.3 2,539 2/5/2018
1.0.2.13 11,376 1/23/2018
1.0.2.12 2,921 1/16/2018
1.0.2.11 11,916 12/20/2017
1.0.2.10 2,484 12/12/2017
1.0.2.9 3,382 12/7/2017
1.0.2.8 3,832 11/23/2017
1.0.2.7 2,514 11/18/2017
1.0.2.6 2,519 10/30/2017
1.0.2.5 1,537 10/24/2017
1.0.2.4 19,419 10/10/2017
1.0.2.4-preview-02 1,066 9/30/2017
1.0.2.4-preview-01 907 8/11/2017
1.0.2.3 9,061 8/8/2017
1.0.2.3-preview2-final-03 844 8/10/2017
1.0.2.3-preview2-final-02 906 8/10/2017
1.0.2.3-preview2-final-01 879 8/10/2017
1.0.2.1 1,711 6/14/2017
1.0.2 6,466 5/5/2017
1.0.1.5 2,434 3/21/2017
1.0.1.4 1,152 3/21/2017
1.0.1.2 1,132 2/27/2017
1.0.1.1 1,122 2/10/2017
1.0.0 4,752 1/24/2017

# 1.5.27 (03 June 2023)
- #946 Add warning logging when sending a request to a Webhook does not return status 200 [feature]
- #949 Add &quot;.NET Framework 4.7&quot; to WireMock.Net.FluentAssertions [feature]
- #928 TypeLoadException when using WithHeader method. [bug]
- #945 Webhook logging [feature]

The full release notes can be found here: https://github.com/WireMock-Net/WireMock.Net/blob/master/CHANGELOG.md