WireMock.Net.Abstractions 1.6.2
WireMock.Net
Lightweight Http Mocking Server for .NET, inspired by WireMock.org (from the Java landscape).
:star: 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
- Can be used for Aspire Distributed Application testing
:star: Stubbing
A core feature of WireMock.Net is the ability to return predefined HTTP responses for requests matching criteria. See Wiki : Stubbing.
:star: Request Matching
WireMock.Net support advanced request-matching logic, see Wiki : Request Matching.
:star: Response Templating
The response which is returned WireMock.Net can be changed using templating. This is described here Wiki : Response Templating.
:star: Admin API Reference
The WireMock admin API provides functionality to define the mappings via a http interface see Wiki : Admin API Reference.
:star: 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.
Unit/Integration Testing using Testcontainers.DotNet
See Wiki : WireMock.Net.Testcontainers on how to build a WireMock.Net Docker container which can be used in Unit/Integration testing.
Unit/Integration Testing using an an Aspire Distributed Application
See Wiki : WireMock.Net.Aspire on how to use WireMock.Net as an Aspire Hosted application to do Unit/Integration testing.
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
:books: Documentation
For more info, see also this WIKI page: What is WireMock.Net.
Showing the top 20 packages that depend on WireMock.Net.Abstractions.
| Packages | Downloads |
|---|---|
|
WireMock.Net
Lightweight Http Mocking Server for .Net, inspired by WireMock from the Java landscape.
|
22 |
|
WireMock.Net.Shared
Shared interfaces, models, enumerations and types.
|
18 |
|
WireMock.Net
Lightweight Http Mocking Server for .Net, inspired by WireMock from the Java landscape.
|
18 |
|
WireMock.Net.Shared
Shared interfaces, models, enumerations and types.
|
17 |
|
WireMock.Net.OpenApiParser
An OpenApi (swagger) parser to generate MappingModel or mapping.json file.
|
17 |
|
WireMock.Net
Lightweight Http Mocking Server for .Net, inspired by WireMock from the Java landscape.
|
17 |
|
WireMock.Net.Shared
Shared interfaces, models, enumerations and types.
|
16 |
|
WireMock.Net
Lightweight Http Mocking Server for .Net, inspired by WireMock from the Java landscape.
|
16 |
|
WireMock.Net.OpenApiParser
An OpenApi (swagger) parser to generate MappingModel or mapping.json file.
|
16 |
|
WireMock.Net.Shared
Shared interfaces, models, enumerations and types.
|
15 |
1.6.2 (04 September 2024)
- #1152 Update MappingConverter to correctly write the Matcher as C# code [bug]
- #1163 Upgrade Aspire to version 8.2.0 [feature]
- #1166 Also update IWireMockMiddlewareOptions when settings are updated via admin interface [bug]
- #1151 MappingsToCSharpCode should use RegexMatcher when specified [bug]
- #1164 WithParam not working. [bug]
The full release notes can be found here: https://github.com/WireMock-Net/WireMock.Net/blob/master/CHANGELOG.md
.NET Framework 4.5
- No dependencies.
.NET Framework 4.5.1
- No dependencies.
.NET Framework 4.6.1
- No dependencies.
.NET Standard 1.0
- NETStandard.Library (>= 1.6.1)
.NET Standard 1.3
- NETStandard.Library (>= 1.6.1)
- System.Security.Cryptography.X509Certificates (>= 4.3.0)
.NET Standard 2.0
.NET Standard 2.1
| Version | Downloads | Last updated |
|---|---|---|
| 2.19.0 | 9 | 10/09/2026 |
| 2.18.0 | 10 | 10/01/2026 |
| 2.17.0 | 12 | 09/30/2026 |
| 2.16.0 | 9 | 10/01/2026 |
| 2.15.0 | 8 | 10/01/2026 |
| 2.14.0 | 11 | 10/01/2026 |
| 2.13.0 | 12 | 10/01/2026 |
| 2.12.0 | 11 | 10/01/2026 |
| 2.11.0 | 8 | 10/01/2026 |
| 2.10.0 | 11 | 10/01/2026 |
| 2.9.0 | 13 | 10/01/2026 |
| 2.8.0 | 8 | 10/01/2026 |
| 2.7.0 | 11 | 10/01/2026 |
| 2.6.0 | 7 | 10/01/2026 |
| 2.5.0 | 12 | 10/01/2026 |
| 2.4.0 | 11 | 10/01/2026 |
| 2.3.0 | 10 | 10/01/2026 |
| 2.2.0 | 9 | 10/01/2026 |
| 2.1.0 | 8 | 10/01/2026 |
| 2.0.0 | 11 | 10/01/2026 |
| 1.25.0 | 10 | 10/01/2026 |
| 1.24.0 | 12 | 10/01/2026 |
| 1.23.0 | 9 | 10/01/2026 |
| 1.22.0 | 11 | 10/01/2026 |
| 1.21.0 | 12 | 10/01/2026 |
| 1.20.0 | 8 | 10/01/2026 |
| 1.19.0 | 8 | 10/01/2026 |
| 1.18.0 | 9 | 10/01/2026 |
| 1.17.0 | 9 | 10/01/2026 |
| 1.16.0 | 12 | 10/01/2026 |
| 1.15.0 | 8 | 10/01/2026 |
| 1.14.0 | 8 | 10/01/2026 |
| 1.14.0-preview-01 | 8 | 10/01/2026 |
| 1.13.0 | 8 | 10/01/2026 |
| 1.12.0 | 6 | 10/01/2026 |
| 1.11.2 | 8 | 10/01/2026 |
| 1.11.1 | 12 | 10/01/2026 |
| 1.11.0 | 7 | 10/02/2026 |
| 1.10.1 | 11 | 10/01/2026 |
| 1.10.0 | 10 | 10/01/2026 |
| 1.9.1 | 11 | 10/01/2026 |
| 1.9.0 | 8 | 10/01/2026 |
| 1.8.18 | 8 | 10/01/2026 |
| 1.8.17 | 8 | 10/01/2026 |
| 1.8.16 | 8 | 10/01/2026 |
| 1.8.15 | 8 | 10/01/2026 |
| 1.8.14 | 10 | 10/01/2026 |
| 1.8.13 | 9 | 10/01/2026 |
| 1.8.13-preview-02 | 8 | 10/01/2026 |
| 1.8.13-preview-01 | 8 | 10/01/2026 |
| 1.8.12 | 9 | 10/01/2026 |
| 1.8.11 | 10 | 10/01/2026 |
| 1.8.10 | 9 | 10/01/2026 |
| 1.8.9 | 9 | 10/01/2026 |
| 1.8.8 | 9 | 10/01/2026 |
| 1.8.7 | 9 | 10/01/2026 |
| 1.8.6 | 11 | 10/01/2026 |
| 1.8.5 | 11 | 10/01/2026 |
| 1.8.4 | 9 | 10/01/2026 |
| 1.8.3 | 10 | 10/01/2026 |
| 1.8.2 | 9 | 10/01/2026 |
| 1.8.1 | 10 | 10/01/2026 |
| 1.8.0 | 8 | 10/01/2026 |
| 1.8.0-prview-01 | 9 | 10/01/2026 |
| 1.7.5-preview-02 | 6 | 10/01/2026 |
| 1.7.5-preview-01 | 9 | 10/01/2026 |
| 1.7.4 | 10 | 10/01/2026 |
| 1.7.3 | 6 | 10/01/2026 |
| 1.7.2 | 12 | 10/01/2026 |
| 1.7.2-preview-01 | 9 | 10/01/2026 |
| 1.7.1 | 8 | 10/01/2026 |
| 1.7.0 | 11 | 10/01/2026 |
| 1.6.12 | 10 | 10/01/2026 |
| 1.6.11 | 11 | 10/01/2026 |
| 1.6.10 | 8 | 10/01/2026 |
| 1.6.9 | 10 | 10/01/2026 |
| 1.6.8 | 9 | 10/01/2026 |
| 1.6.7 | 9 | 10/01/2026 |
| 1.6.7-preview-02 | 9 | 10/01/2026 |
| 1.6.7-preview-01 | 8 | 10/01/2026 |
| 1.6.6 | 10 | 10/01/2026 |
| 1.6.5 | 8 | 10/01/2026 |
| 1.6.4 | 9 | 10/01/2026 |
| 1.6.3 | 12 | 10/01/2026 |
| 1.6.2 | 11 | 10/01/2026 |
| 1.6.1 | 10 | 10/01/2026 |
| 1.6.0 | 12 | 10/01/2026 |
| 1.5.62 | 9 | 10/01/2026 |
| 1.5.61 | 11 | 10/01/2026 |
| 1.5.60 | 10 | 10/01/2026 |
| 1.5.59 | 12 | 10/01/2026 |
| 1.5.58 | 8 | 10/01/2026 |
| 1.5.57 | 9 | 10/01/2026 |
| 1.5.56 | 9 | 10/01/2026 |
| 1.5.55 | 10 | 10/01/2026 |
| 1.5.54 | 10 | 10/01/2026 |
| 1.5.53 | 12 | 10/01/2026 |
| 1.5.52 | 10 | 10/01/2026 |
| 1.5.51 | 10 | 10/01/2026 |
| 1.5.50 | 9 | 10/01/2026 |
| 1.5.49 | 10 | 10/01/2026 |
| 1.5.48 | 14 | 10/01/2026 |
| 1.5.47 | 10 | 10/01/2026 |
| 1.5.46 | 10 | 10/01/2026 |
| 1.5.45 | 9 | 10/01/2026 |
| 1.5.44 | 8 | 10/01/2026 |
| 1.5.43 | 10 | 10/01/2026 |
| 1.5.42 | 8 | 10/01/2026 |
| 1.5.41 | 8 | 10/01/2026 |
| 1.5.40 | 10 | 10/01/2026 |
| 1.5.39 | 8 | 10/01/2026 |
| 1.5.38 | 10 | 10/01/2026 |
| 1.5.37 | 9 | 10/01/2026 |
| 1.5.36 | 9 | 10/01/2026 |
| 1.5.35 | 9 | 10/01/2026 |
| 1.5.34 | 8 | 10/01/2026 |
| 1.5.32 | 8 | 10/01/2026 |
| 1.5.31 | 11 | 10/01/2026 |
| 1.5.30 | 11 | 10/01/2026 |
| 1.5.29 | 10 | 10/01/2026 |
| 1.5.28 | 13 | 10/01/2026 |
| 1.5.27 | 8 | 10/01/2026 |
| 1.5.26 | 7 | 10/01/2026 |
| 1.5.25 | 10 | 10/01/2026 |
| 1.5.24 | 9 | 10/01/2026 |
| 1.5.23 | 10 | 10/01/2026 |
| 1.5.22 | 11 | 10/01/2026 |
| 1.5.21 | 9 | 10/01/2026 |
| 1.5.20 | 10 | 10/01/2026 |
| 1.5.19 | 8 | 10/01/2026 |
| 1.5.18 | 10 | 10/01/2026 |
| 1.5.17 | 7 | 10/01/2026 |
| 1.5.16 | 7 | 10/01/2026 |
| 1.5.15 | 10 | 10/01/2026 |
| 1.5.14 | 7 | 10/01/2026 |
| 1.5.13 | 10 | 10/01/2026 |
| 1.5.12 | 7 | 10/01/2026 |
| 1.5.11 | 10 | 10/01/2026 |
| 1.5.10 | 9 | 10/01/2026 |
| 1.5.9 | 11 | 10/01/2026 |
| 1.5.8 | 10 | 10/01/2026 |
| 1.5.7 | 10 | 10/01/2026 |
| 1.5.6 | 10 | 10/01/2026 |
| 1.5.5 | 12 | 10/01/2026 |
| 1.5.4 | 12 | 10/01/2026 |
| 1.5.3 | 8 | 10/01/2026 |
| 1.5.2 | 9 | 10/01/2026 |
| 1.5.1 | 9 | 10/01/2026 |
| 1.5.0 | 9 | 10/01/2026 |
| 1.4.43 | 8 | 10/01/2026 |
| 1.4.42 | 10 | 10/01/2026 |
| 1.4.41 | 8 | 10/01/2026 |
| 1.4.40 | 10 | 10/01/2026 |
| 1.4.39 | 10 | 10/01/2026 |
| 1.4.38 | 7 | 10/01/2026 |
| 1.4.37 | 8 | 10/01/2026 |
| 1.4.36 | 7 | 10/01/2026 |
| 1.4.35 | 9 | 10/01/2026 |
| 1.4.34 | 9 | 10/01/2026 |
| 1.4.33 | 9 | 10/01/2026 |
| 1.4.32 | 10 | 10/01/2026 |
| 1.4.31 | 11 | 10/01/2026 |
| 1.4.30 | 9 | 10/01/2026 |
| 1.4.29 | 11 | 10/01/2026 |
| 1.4.28 | 11 | 10/01/2026 |
| 1.4.27 | 7 | 10/01/2026 |
| 1.4.26 | 7 | 10/01/2026 |
| 1.4.25 | 10 | 10/01/2026 |
| 1.4.24 | 10 | 10/01/2026 |
| 1.4.23 | 11 | 10/01/2026 |
| 1.4.22 | 10 | 10/01/2026 |
| 1.4.21 | 10 | 10/01/2026 |
| 1.4.21-preview-03 | 9 | 10/02/2026 |
| 1.4.20 | 8 | 10/01/2026 |
| 1.4.19 | 10 | 10/01/2026 |
| 1.4.18 | 8 | 10/01/2026 |
| 1.4.17 | 8 | 10/01/2026 |
| 1.4.16 | 10 | 10/01/2026 |
| 1.4.15 | 9 | 10/01/2026 |
| 1.4.14 | 6 | 10/01/2026 |
| 1.4.13 | 13 | 10/01/2026 |
| 1.4.12 | 9 | 10/01/2026 |
| 1.4.11 | 10 | 10/01/2026 |
| 1.4.10 | 11 | 10/01/2026 |
| 1.4.9 | 10 | 10/01/2026 |
| 1.4.8 | 11 | 10/01/2026 |
| 1.4.7 | 9 | 10/01/2026 |
| 1.4.6 | 7 | 10/01/2026 |
| 1.4.5 | 8 | 10/01/2026 |
| 1.4.4 | 10 | 10/01/2026 |
| 1.4.3 | 7 | 10/01/2026 |
| 1.4.2 | 11 | 10/01/2026 |
| 1.4.1 | 7 | 10/01/2026 |
| 1.4.0 | 7 | 10/01/2026 |
| 1.3.10 | 11 | 10/01/2026 |
| 1.3.9 | 8 | 10/01/2026 |
| 1.3.8 | 11 | 10/01/2026 |
| 1.3.7 | 8 | 10/01/2026 |
| 1.3.6 | 8 | 10/01/2026 |
| 1.3.5 | 10 | 10/01/2026 |
| 1.3.4 | 11 | 10/01/2026 |
| 1.3.3 | 10 | 10/01/2026 |
| 1.3.2 | 11 | 10/01/2026 |
| 1.3.1 | 9 | 10/01/2026 |
| 1.3.0 | 9 | 10/01/2026 |
| 1.2.18 | 11 | 10/01/2026 |
| 1.2.17 | 11 | 10/01/2026 |
| 1.2.16 | 10 | 10/01/2026 |
| 1.2.15 | 10 | 10/01/2026 |
| 1.2.14 | 10 | 10/01/2026 |
| 1.2.13 | 11 | 10/01/2026 |
| 1.2.12 | 11 | 10/01/2026 |
| 1.2.11 | 9 | 10/01/2026 |
| 1.2.10 | 10 | 10/01/2026 |
| 1.2.9 | 9 | 10/01/2026 |
| 1.2.8 | 12 | 10/01/2026 |
| 1.2.7 | 10 | 10/01/2026 |
| 1.2.6 | 7 | 10/01/2026 |
| 1.2.5 | 10 | 10/01/2026 |
| 1.2.4 | 9 | 10/01/2026 |
| 1.2.3 | 9 | 10/01/2026 |
| 1.2.2 | 10 | 10/01/2026 |
| 1.2.1 | 9 | 10/01/2026 |
| 1.2.0 | 9 | 10/01/2026 |
| 1.1.10 | 8 | 10/01/2026 |
| 1.1.9 | 10 | 10/01/2026 |
| 1.1.8 | 7 | 10/01/2026 |
| 1.1.7 | 8 | 10/01/2026 |
| 1.1.6 | 11 | 10/01/2026 |
| 1.1.5 | 8 | 10/01/2026 |
| 1.1.4 | 9 | 10/01/2026 |
| 1.1.3 | 9 | 10/01/2026 |
| 1.1.2 | 10 | 10/01/2026 |
| 1.1.1 | 7 | 10/01/2026 |
| 1.1.0 | 12 | 10/01/2026 |
| 1.1.0-preview-01 | 8 | 10/01/2026 |
| 1.0.0 | 9 | 10/01/2026 |