MockServerClientNet 2.2.2

dotnet add package MockServerClientNet --version 2.2.2
                    
NuGet\Install-Package MockServerClientNet -Version 2.2.2
                    
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="MockServerClientNet" Version="2.2.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MockServerClientNet" Version="2.2.2" />
                    
Directory.Packages.props
<PackageReference Include="MockServerClientNet" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MockServerClientNet --version 2.2.2
                    
#r "nuget: MockServerClientNet, 2.2.2"
                    
#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.
#:package MockServerClientNet@2.2.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MockServerClientNet&version=2.2.2
                    
Install as a Cake Addin
#tool nuget:?package=MockServerClientNet&version=2.2.2
                    
Install as a Cake Tool

MockServer .NET Client NuGet Version License: MIT

Unofficial C# Fluent API for interacting with Mock-Server targeting .NET 8.

This client, available at MockServerClientNet Repository, is written in C# and based on the original Java client Fluent API, available at Mock-Server Repository. Thanks to its authors for their contributions to open-source. I am not an author of the mentioned Java client and this client is not part of the official Mock-Server clients.

For users

NuGet Package

Get the latest version from NuGet Gallery or run the following command:

dotnet add package MockServerClientNet

Usage

Refer to Usage Samples for examples on how to use the Fluent API.

To start an instance of Mock-Server using Docker:

docker run -d --rm --name mockserver -p 1080:1080 mockserver/mockserver

For more details on using the Docker image, check the official Mock-Server documentation.

For contributors

Build

dotnet build

Testing

The below command will run the integration tests against a TestContainers Mock-Server instance.

dotnet test

How to Contribute

Please take a look at CONTRIBUTING for details.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on MockServerClientNet:

Package Downloads
Scenarify

Given/When/Then scenario testing for xUnit v3 service tests: JSON matching with token expansion, MockServer stubs, and a ServiceTestFixture for spinning up the service under test.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.2.2 2,010,848 8/6/2025
2.2.1 431 8/4/2025
2.2.0 2,236 8/4/2025
2.1.0 1,045,447 8/27/2024
2.0.0 1,221 8/23/2024
1.2.0 961,007 7/3/2020
1.1.1 1,577 6/26/2020
1.0.1 34,687 7/6/2018
1.0.0 2,254 7/6/2018