Skip to content

This library is a dotnet client around the fabulous MockServer docker image. It provides an easy and on-the-fly way to setup all sorts of HttpServers with Responses, Timeouts, Exceptions and so on.

License

Notifications You must be signed in to change notification settings

alex-held/NinjaTools.FluentMockServer

Repository files navigation

SonarCloud

Azure DevOps builds (branch) Azure DevOps builds (develop)

Azure DevOps tests (branch)


Nuget (stable)

Nuget


Sonar Tech Debt Sonar Coverage CodeFactor Grade Codacy grade

Gitpod Ready-to-Code


GitHub commit activity

GitHub GitHub Wiki GitHub pull requests


Copyright 2019-2020 GNU GPL v3

NinjaTools.FluentMockServer

FluentMockServer is an heavily inspired by providing additional tooling for setting up the MockServer via code.

The project was inspired by other MockServers such as mockserver.

See the ROADMAP.md for an overview of planned features.

NinjaTools.FluentMockServer is currently maintained and pull requests are actively added into the repository.

Getting Started

Installation FAQ

You can choose between or combine different mode of operations

  1. Run an instance of mockserver docker container in the background
  2. Start an instance of mockserver docker container on demand in your c# code

Try it out in the browser!

Open in Gitpod

Features

Current Features

  • Tightly integrated with mockserver
  • In-memory creation of MockServer Docker Instances with FluentDocker
  • XUnit integration with Fixtures
  • Configure an Expectation:
    • Select which HttpRequest to handle
    • Configure an action like Exceptions, HttpResponse, Timeout, ConnectionLos ...
    • Optionally provide for how often / timespan the expectation is valid
  • Verfiy Expectations:
    • Select which HttpRequest to verify
    • Verify if has been matched
    • Verify how often

How to contribute

An contibution is welcome. For more information check out CONTRIBUTING.md.

If you have any questions feel free to contact me or join our Discord.

Requirements

About

This library is a dotnet client around the fabulous MockServer docker image. It provides an easy and on-the-fly way to setup all sorts of HttpServers with Responses, Timeouts, Exceptions and so on.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages