In memory docker container runner for NinjaTools.FluentMockServer


Keywords
docker, container, mock, test, server, mockserver, csharp, framework, http-server, integration-test, mock-server, mocks, xunit
License
GPL-3.0
Install
Install-Package NinjaTools.FluentMockServer.TestContainers -Version 1.0.8-20200106.2

Documentation

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