wiremock-net - WireMock.Net.Matchers.CSharpCode 1.4.6-ci-14736
A CSharpCodeMatcher which can be used to match WireMock.Net Requests using C# code.
PM> Install-Package WireMock.Net.Matchers.CSharpCode -Version 1.4.6-ci-14736 -Source https://www.myget.org/F/wiremock-net/api/v3/index.json
> nuget.exe install WireMock.Net.Matchers.CSharpCode -Version 1.4.6-ci-14736 -Source https://www.myget.org/F/wiremock-net/api/v3/index.json
> dotnet add package WireMock.Net.Matchers.CSharpCode --version 1.4.6-ci-14736 --source https://www.myget.org/F/wiremock-net/api/v3/index.json
<PackageReference Include="WireMock.Net.Matchers.CSharpCode" Version="1.4.6-ci-14736" />
Copy to clipboard
source https://www.myget.org/F/wiremock-net/api/v3/index.json
nuget WireMock.Net.Matchers.CSharpCode ~> 1.4.6-ci-14736
Copy to clipboard
> choco install WireMock.Net.Matchers.CSharpCode --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.Matchers.CSharpCode" -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
- Microsoft.CodeDom.Providers.DotNetCompilerPlatform (>= 3.6.0)
- WireMock.Net (>= 1.4.6-ci-14736)
-
.NETFramework 4.5.2
- Microsoft.CodeDom.Providers.DotNetCompilerPlatform (>= 3.6.0)
- WireMock.Net (>= 1.4.6-ci-14736)
-
.NETFramework 4.6
- CS-Script (>= 3.30.3)
- WireMock.Net (>= 1.4.6-ci-14736)
-
.NETFramework 4.6.1
- CS-Script (>= 3.30.3)
- WireMock.Net (>= 1.4.6-ci-14736)
-
.NETStandard 1.3
- NETStandard.Library (>= 1.6.1)
- WireMock.Net (>= 1.4.6-ci-14736)
-
.NETCoreApp 3.1
- CS-Script.Core (>= 1.4.2-preview)
- WireMock.Net (>= 1.4.6-ci-14736)
-
.NETFramework 5.0
- CS-Script.Core (>= 1.4.2-preview)
- WireMock.Net (>= 1.4.6-ci-14736)
-
.NETStandard 2.0
- CS-Script.Core (>= 1.1.1)
- WireMock.Net (>= 1.4.6-ci-14736)
-
.NETStandard 2.1
- CS-Script.Core (>= 1.4.2-preview)
- WireMock.Net (>= 1.4.6-ci-14736)
- .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 |
LicenseUnknown |
Tagswiremock matchers matcher csharp csharpcode |
Info0 total downloads |
0 downloads for version 1.4.6-ci-14736 |
Download (186.23 KB) |
Found on the current feed only |
Package history
Version | Size | Last updated | Downloads | Mirrored? | |||
---|---|---|---|---|---|---|---|
![]() |
1.4.6-ci-14736 | 186.23 KB | Fri, 26 Feb 2021 12:47:59 GMT | 0 |
|
||
![]() |
1.4.6-ci-14735 | 186.2 KB | Fri, 26 Feb 2021 12:23:47 GMT | 0 |
|
||
![]() |
1.4.6-ci-14668 | 186.18 KB | Thu, 18 Feb 2021 08:18:03 GMT | 0 |
|
||
![]() |
1.4.5-ci-14660 | 186.25 KB | Thu, 11 Feb 2021 11:14:12 GMT | 0 |
|
||
![]() |
1.4.4-ci-14652 | 186.28 KB | Thu, 11 Feb 2021 11:00:57 GMT | 0 |
|
||
![]() |
1.4.4-ci-14649 | 186.24 KB | Tue, 09 Feb 2021 19:54:43 GMT | 0 |
|
||
![]() |
1.4.3-ci-14648 | 186.3 KB | Tue, 09 Feb 2021 19:48:43 GMT | 0 |
|
||
![]() |
1.4.3-ci-14646 | 186.24 KB | Tue, 09 Feb 2021 19:46:09 GMT | 0 |
|
||
![]() |
1.4.3-ci-14644 | 186.32 KB | Tue, 09 Feb 2021 19:30:05 GMT | 0 |
|
||
![]() |
1.4.3-ci-14637 | 186.15 KB | Tue, 09 Feb 2021 07:33:35 GMT | 0 |
|