WireMock.Net
WireMock.Net is a flexible product for stubbing and mocking web HTTP responses using advanced request matching and response templating. Based on WireMock Java, but extended with more functionality.Full documentation can be found at https://wiremock.org/dotnet/.
Install / Use
/learn @wiremock/WireMock.NetREADME
WireMock.Net
A C# .NET version based on mock4net which mimics functionality from the original Java based WireMock.
:books: Full documentation can now be found at wiremock.org
: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
- GraphQL support
- gRPC / ProtoBuf support
- OpenAPI support
- OpenTelemetry support
- WebSockets support
:memo: Blogs
- mstack.nl : Generate C# Code from Mapping(s)
- mstack.nl : Chaos Engineering with Fault Injections
- mstack.nl : gRPC / ProtoBuf Support
- mstack.nl : Build and test your own .NET Aspire component
:computer: Project Info
| | |
| --- | --- |
| Project | |
| Chat |
|
| Issues |
|
| | |
| Quality | |
| Build Azure |
|
| Quality |
|
| Sonar Bugs |
|
| Coverage |
|
| TIOBE | TIOBE Quality Indicator
:package: NuGet packages
| | Official | Preview :information_source: |
| - | - | - |
| WireMock.Net | |
| WireMock.Net.Minimal 🔺|
|
| WireMock.Net.StandAlone |
|
| WireMock.Net.Testcontainers |
|
| WireMock.Net.Aspire |
|
| WireMock.Net.AspNetCore.Middleware |
|
| | | |
| WireMock.Net.AwesomeAssertions |
|
| WireMock.Net.FluentAssertions |
|
| WireMock.Net.xUnit |
|
| WireMock.Net.xUnit.v3 |
|
| WireMock.Net.TUnit |
|
| WireMock.Net.NUnit |
|
| | | |
| WireMock.Net.Extensions.Routing |
|
| WireMock.Net.Matchers.CSharpCode |
|
| WireMock.Net.OpenApiParser |
| [