Skip to content

.NET Core / C# Fluent API for interacting with Mock-Server

License

Notifications You must be signed in to change notification settings

wwwK/mockserver-client-net

 
 

Repository files navigation

Build Status NuGet version License: MIT

C# Fluent API for interacting with Mock-Server targeting .netstandard2.0.

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 local running instance of Mock-Server.

dotnet test

Use the following environment variables to change the target instance of the tests:

  • MOCKSERVER_TEST_HOST (Defaults to localhost)
  • MOCKSERVER_TEST_PORT (Defaults to 1080)

How to Contribute

Please take a look at CONTRIBUTING for details.

About

.NET Core / C# Fluent API for interacting with Mock-Server

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%