https://github.com/picadoh/mockserver-client-net
.NET Core / C# Fluent API for interacting with Mock-Server
https://github.com/picadoh/mockserver-client-net
csharp dotnet dotnetcore lib mock mock-server mocking mockserverclient mockserverclientnet testing
Last synced: about 1 month ago
JSON representation
.NET Core / C# Fluent API for interacting with Mock-Server
- Host: GitHub
- URL: https://github.com/picadoh/mockserver-client-net
- Owner: picadoh
- License: mit
- Created: 2017-10-14T18:35:09.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-08-27T02:06:17.000Z (9 months ago)
- Last Synced: 2025-03-31T04:41:12.790Z (2 months ago)
- Topics: csharp, dotnet, dotnetcore, lib, mock, mock-server, mocking, mockserverclient, mockserverclientnet, testing
- Language: C#
- Homepage:
- Size: 125 KB
- Stars: 26
- Watchers: 5
- Forks: 14
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
[](https://github.com/picadoh/mockserver-client-net/actions/workflows/dotnet-build.yml)  [](https://github.com/picadoh/mockserver-client-net/blob/master/LICENSE.md)
Unofficial C# Fluent API for interacting with [Mock-Server](http://www.mock-server.com/) targeting `.NET 8`.
This client, available at [MockServerClientNet Repository](https://github.com/picadoh/mockserver-client-net), is written in C# and based on the original Java client Fluent API, available at [Mock-Server Repository](https://github.com/mock-server/mockserver). 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](https://www.mock-server.com/mock_server/mockserver_clients.html).
## For users
### NuGet Package
Get the latest version from [NuGet Gallery](https://www.nuget.org/packages/MockServerClientNet/) or run the following command:
dotnet add package MockServerClientNet
### Usage
Refer to [Usage Samples](docs/Samples.md) 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](https://www.mock-server.com/where/docker.html).
## For contributors
### Build
dotnet build
### Testing
The below command will run the integration tests against
a [TestContainers](https://dotnet.testcontainers.org/) Mock-Server instance.dotnet test
### How to Contribute
Please take a look at [CONTRIBUTING](CONTRIBUTING.md) for details.