wiremock-net - WireMock.Net 1.4.6-ci-14736
Lightweight Http Mocking Server for .Net, inspired by WireMock from the Java landscape.
PM> Install-Package WireMock.Net -Version 1.4.6-ci-14736 -Source https://www.myget.org/F/wiremock-net/api/v3/index.json
> nuget.exe install WireMock.Net -Version 1.4.6-ci-14736 -Source https://www.myget.org/F/wiremock-net/api/v3/index.json
> dotnet add package WireMock.Net --version 1.4.6-ci-14736 --source https://www.myget.org/F/wiremock-net/api/v3/index.json
source https://www.myget.org/F/wiremock-net/api/v3/index.json
nuget WireMock.Net ~> 1.4.6-ci-14736
Copy to clipboard
> choco install WireMock.Net --version 1.4.6-ci-14736 --source https://www.myget.org/F/wiremock-net/api/v2
Import-Module PowerShellGet
Register-PSRepository -Name "wiremock-net" -SourceLocation "https://www.myget.org/F/wiremock-net/api/v2"
Install-Module -Name "WireMock.Net" -RequiredVersion "1.4.6-ci-14736" -Repository "wiremock-net" -AllowPreRelease
Copy to clipboard
WireMock.Net
A C# .NET version based on mock4net which mimics the functionality from the JAVA based WireMock.org.
For more info, see also this WIKI page: What is WireMock.Net.
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 DotNet 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
Info
Project | |
Chat | |
Issues | |
Quality | |
Build Azure | |
Quality | |
Sonar Bugs | |
Coverage |
NuGet packages
Official | Preview | |
---|---|---|
WireMock.Net | ||
WireMock.Net.StandAlone | ||
WireMock.Net.FluentAssertions | ||
WireMock.Net.RestClient | ||
WireMock.Net.Matchers.CSharpCode |
Development
For the supported frameworks and build information, see this page.
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
See CHANGELOG.md
-
.NETFramework 4.5.1
- Handlebars.Net.Helpers (>= 2.1.1)
- Handlebars.Net.Helpers.DynamicLinq (>= 2.1.1)
- Handlebars.Net.Helpers.Json (>= 2.1.1)
- Handlebars.Net.Helpers.Random (>= 2.1.1)
- Handlebars.Net.Helpers.Xeger (>= 2.1.1)
- Handlebars.Net.Helpers.XPath (>= 2.1.1)
- JmesPath.Net (>= 1.0.125)
- Microsoft.AspNet.WebApi.OwinSelfHost (>= 5.2.6)
- Newtonsoft.Json (>= 11.0.2)
- RandomDataGenerator.Net (>= 1.0.12)
- Scriban.Signed (>= 2.1.4)
- SimMetrics.Net (>= 1.0.5)
- System.Linq.Dynamic.Core (>= 1.0.12)
- System.ValueTuple (>= 4.5.0)
- WireMock.Net.Abstractions (>= 1.4.6-ci-14736)
- XPath2.Extensions (>= 1.1.0)
-
.NETFramework 4.5.2
- Handlebars.Net.Helpers (>= 2.1.1)
- Handlebars.Net.Helpers.DynamicLinq (>= 2.1.1)
- Handlebars.Net.Helpers.Json (>= 2.1.1)
- Handlebars.Net.Helpers.Random (>= 2.1.1)
- Handlebars.Net.Helpers.Xeger (>= 2.1.1)
- Handlebars.Net.Helpers.XPath (>= 2.1.1)
- JmesPath.Net (>= 1.0.125)
- Microsoft.AspNet.WebApi.OwinSelfHost (>= 5.2.6)
- Newtonsoft.Json (>= 11.0.2)
- RandomDataGenerator.Net (>= 1.0.12)
- Scriban.Signed (>= 2.1.4)
- SimMetrics.Net (>= 1.0.5)
- System.Linq.Dynamic.Core (>= 1.0.12)
- System.ValueTuple (>= 4.5.0)
- WireMock.Net.Abstractions (>= 1.4.6-ci-14736)
- XPath2.Extensions (>= 1.1.0)
-
.NETFramework 4.6
- Handlebars.Net.Helpers (>= 2.1.1)
- Handlebars.Net.Helpers.DynamicLinq (>= 2.1.1)
- Handlebars.Net.Helpers.Json (>= 2.1.1)
- Handlebars.Net.Helpers.Random (>= 2.1.1)
- Handlebars.Net.Helpers.Xeger (>= 2.1.1)
- Handlebars.Net.Helpers.XPath (>= 2.1.1)
- JmesPath.Net (>= 1.0.125)
- Microsoft.AspNet.WebApi.OwinSelfHost (>= 5.2.6)
- Microsoft.Owin (>= 4.0.0)
- Microsoft.Owin.Host.HttpListener (>= 4.0.0)
- Microsoft.Owin.Hosting (>= 4.0.0)
- Newtonsoft.Json (>= 11.0.2)
- RandomDataGenerator.Net (>= 1.0.12)
- Scriban.Signed (>= 2.1.4)
- SimMetrics.Net (>= 1.0.5)
- System.Linq.Dynamic.Core (>= 1.0.12)
- System.Net.Http (>= 4.3.3)
- System.ValueTuple (>= 4.5.0)
- WireMock.Net.Abstractions (>= 1.4.6-ci-14736)
- XPath2.Extensions (>= 1.1.0)
-
.NETFramework 4.6.1
- Handlebars.Net.Helpers (>= 2.1.1)
- Handlebars.Net.Helpers.DynamicLinq (>= 2.1.1)
- Handlebars.Net.Helpers.Json (>= 2.1.1)
- Handlebars.Net.Helpers.Random (>= 2.1.1)
- Handlebars.Net.Helpers.Xeger (>= 2.1.1)
- Handlebars.Net.Helpers.XPath (>= 2.1.1)
- JmesPath.Net (>= 1.0.125)
- Microsoft.AspNetCore (>= 2.2.0)
- Microsoft.AspNetCore.Server.IIS (>= 2.2.6)
- Newtonsoft.Json (>= 11.0.2)
- RandomDataGenerator.Net (>= 1.0.12)
- Scriban.Signed (>= 2.1.4)
- SimMetrics.Net (>= 1.0.5)
- System.Linq.Dynamic.Core (>= 1.0.12)
- WireMock.Net.Abstractions (>= 1.4.6-ci-14736)
- XPath2.Extensions (>= 1.1.0)
-
.NETStandard 1.3
- Handlebars.Net.Helpers (>= 2.1.1)
- Handlebars.Net.Helpers.DynamicLinq (>= 2.1.1)
- Handlebars.Net.Helpers.Json (>= 2.1.1)
- Handlebars.Net.Helpers.Random (>= 2.1.1)
- Handlebars.Net.Helpers.Xeger (>= 2.1.1)
- Handlebars.Net.Helpers.XPath (>= 2.1.1)
- JmesPath.Net (>= 1.0.125)
- Microsoft.AspNetCore (>= 1.1.7)
- Microsoft.AspNetCore.Server.Kestrel.Https (>= 1.1.3)
- NETStandard.Library (>= 1.6.1)
- Newtonsoft.Json (>= 11.0.2)
- RandomDataGenerator.Net (>= 1.0.12)
- Scriban.Signed (>= 2.1.4)
- SimMetrics.Net (>= 1.0.5)
- System.Linq.Dynamic.Core (>= 1.0.12)
- System.ValueTuple (>= 4.5.0)
- System.Xml.XmlDocument (>= 4.3.0)
- System.Xml.XPath.XmlDocument (>= 4.3.0)
- WireMock.Net.Abstractions (>= 1.4.6-ci-14736)
-
.NETCoreApp 3.1
- Handlebars.Net.Helpers (>= 2.1.1)
- Handlebars.Net.Helpers.DynamicLinq (>= 2.1.1)
- Handlebars.Net.Helpers.Json (>= 2.1.1)
- Handlebars.Net.Helpers.Random (>= 2.1.1)
- Handlebars.Net.Helpers.Xeger (>= 2.1.1)
- Handlebars.Net.Helpers.XPath (>= 2.1.1)
- JmesPath.Net (>= 1.0.125)
- Newtonsoft.Json (>= 11.0.2)
- RandomDataGenerator.Net (>= 1.0.12)
- Scriban.Signed (>= 3.3.2)
- SimMetrics.Net (>= 1.0.5)
- System.Linq.Dynamic.Core (>= 1.0.12)
- WireMock.Net.Abstractions (>= 1.4.6-ci-14736)
- XPath2.Extensions (>= 1.1.0)
-
.NETFramework 5.0
- Handlebars.Net.Helpers (>= 2.1.1)
- Handlebars.Net.Helpers.DynamicLinq (>= 2.1.1)
- Handlebars.Net.Helpers.Json (>= 2.1.1)
- Handlebars.Net.Helpers.Random (>= 2.1.1)
- Handlebars.Net.Helpers.Xeger (>= 2.1.1)
- Handlebars.Net.Helpers.XPath (>= 2.1.1)
- JmesPath.Net (>= 1.0.125)
- Newtonsoft.Json (>= 11.0.2)
- RandomDataGenerator.Net (>= 1.0.12)
- Scriban.Signed (>= 3.3.2)
- SimMetrics.Net (>= 1.0.5)
- System.Linq.Dynamic.Core (>= 1.0.12)
- WireMock.Net.Abstractions (>= 1.4.6-ci-14736)
- XPath2.Extensions (>= 1.1.0)
-
.NETStandard 2.0
- Handlebars.Net.Helpers (>= 2.1.1)
- Handlebars.Net.Helpers.DynamicLinq (>= 2.1.1)
- Handlebars.Net.Helpers.Json (>= 2.1.1)
- Handlebars.Net.Helpers.Random (>= 2.1.1)
- Handlebars.Net.Helpers.Xeger (>= 2.1.1)
- Handlebars.Net.Helpers.XPath (>= 2.1.1)
- JmesPath.Net (>= 1.0.125)
- Microsoft.AspNetCore (>= 2.2.0)
- Microsoft.AspNetCore.Server.IIS (>= 2.2.6)
- Newtonsoft.Json (>= 11.0.2)
- RandomDataGenerator.Net (>= 1.0.12)
- Scriban.Signed (>= 3.3.2)
- SimMetrics.Net (>= 1.0.5)
- System.Linq.Dynamic.Core (>= 1.0.12)
- WireMock.Net.Abstractions (>= 1.4.6-ci-14736)
- XPath2.Extensions (>= 1.1.0)
-
.NETStandard 2.1
- Handlebars.Net.Helpers (>= 2.1.1)
- Handlebars.Net.Helpers.DynamicLinq (>= 2.1.1)
- Handlebars.Net.Helpers.Json (>= 2.1.1)
- Handlebars.Net.Helpers.Random (>= 2.1.1)
- Handlebars.Net.Helpers.Xeger (>= 2.1.1)
- Handlebars.Net.Helpers.XPath (>= 2.1.1)
- JmesPath.Net (>= 1.0.125)
- Microsoft.AspNetCore (>= 2.2.0)
- Microsoft.AspNetCore.Server.IIS (>= 2.2.6)
- Newtonsoft.Json (>= 11.0.2)
- RandomDataGenerator.Net (>= 1.0.12)
- Scriban.Signed (>= 3.3.2)
- SimMetrics.Net (>= 1.0.5)
- System.Linq.Dynamic.Core (>= 1.0.12)
- WireMock.Net.Abstractions (>= 1.4.6-ci-14736)
- XPath2.Extensions (>= 1.1.0)
- .NETCoreApp 3.1: 3.1.0.0
- .NETFramework 4.5.1: 4.5.1.0
- .NETFramework 4.5.2: 4.5.2.0
- .NETFramework 4.6: 4.6.0.0
- .NETFramework 4.6.1: 4.6.1.0
- .NETFramework 5.0: 5.0.0.0
- .NETStandard 1.3: 1.3.0.0
- .NETStandard 2.0: 2.0.0.0
- .NETStandard 2.1: 2.1.0.0
OwnersStef |
AuthorsStef Heyenrath |
Project URLhttps://github.com/WireMock-Net/WireMock.Net |
LicenseApache-2.0 |
Tagstdd mock http wiremock test server unittest |
Info0 total downloads |
0 downloads for version 1.4.6-ci-14736 |
Download (1.37 MB) |
Found on the current feed only |
Package history
Version | Size | Last updated | Downloads | Mirrored? | |||
---|---|---|---|---|---|---|---|
![]() |
1.4.6-ci-14736 | 1.37 MB | Fri, 26 Feb 2021 12:47:57 GMT | 0 |
|
||
![]() |
1.4.6-ci-14735 | 1.37 MB | Fri, 26 Feb 2021 12:23:45 GMT | 0 |
|
||
![]() |
1.4.6-ci-14668 | 1.37 MB | Thu, 18 Feb 2021 08:18:01 GMT | 0 |
|
||
![]() |
1.4.5-ci-14660 | 1.37 MB | Thu, 11 Feb 2021 11:14:10 GMT | 0 |
|
||
![]() |
1.4.4-ci-14652 | 1.37 MB | Thu, 11 Feb 2021 11:00:55 GMT | 0 |
|
||
![]() |
1.4.4-ci-14649 | 1.37 MB | Tue, 09 Feb 2021 19:54:42 GMT | 0 |
|
||
![]() |
1.4.3-ci-14648 | 1.37 MB | Tue, 09 Feb 2021 19:48:42 GMT | 0 |
|
||
![]() |
1.4.3-ci-14646 | 1.37 MB | Tue, 09 Feb 2021 19:46:08 GMT | 0 |
|
||
![]() |
1.4.3-ci-14644 | 1.37 MB | Tue, 09 Feb 2021 19:30:04 GMT | 0 |
|
||
![]() |
1.4.3-ci-14637 | 1.36 MB | Tue, 09 Feb 2021 07:33:34 GMT | 0 |
|