MbDotNet 5.0.0

dotnet add package MbDotNet --version 5.0.0
NuGet\Install-Package MbDotNet -Version 5.0.0
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="MbDotNet" Version="5.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MbDotNet --version 5.0.0
#r "nuget: MbDotNet, 5.0.0"
#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.
// Install MbDotNet as a Cake Addin
#addin nuget:?package=MbDotNet&version=5.0.0

// Install MbDotNet as a Cake Tool
#tool nuget:?package=MbDotNet&version=5.0.0

alternate text is missing from this package README image

MbDotNet

A .NET client library for interacting with Mountebank. This project aims to reduce the amount of Mountebank knowledge required to create and configure imposters through a natural language interface.

A simple example:

await _client.CreateHttpImposter(4545, "My Imposter", imposter =>
{
	imposter.AddStub()
		.OnPathAndMethodEqual("/customers/123", Method.Get)
		.ReturnsXml(HttpStatusCode.OK, new Customer { Email = "customer@test.com" });
});

To get started, read the documentation here.

NuGet Package

The library is available for install as a NuGet package.

https://www.nuget.org/packages/MbDotNet

The project currently targets .NET Standard 1.3, which is compatible with .NET Framework 4.6. If you need to use it in a project targeting an older framework version, such as .NET Framework 4.5, please use version 3.x of the package.

Upgrading from v4 (or earlier) to v5

There were a handful of breaking changes in v5 of the library. If you are planning to upgrade to v5, please take a look at the migration guide.

Unsupported Functionality

The following Mountebank functionality is not yet supported:

Pull requests are always welcome.

Development

Prerequisites

The following items are necessary in order to build and test the project:

  • .NET SDK 6.0
  • Mountebank or Docker Compose

Building

To build the project, run the following from the root directory:

dotnet build

Testing

To run all tests, run the following from the root directory:

dotnet test

This includes a set of acceptance tests that run against an actual Mountebank instance. In order for those tests to succeed, Mountebank will need to be run with the --allowInjection and --debug options provided. See http://www.mbtest.org/docs/api/overview#get-imposter.

If you would prefer to run Mountebank via docker, please execute the following command from the root directory: docker compose up

If you would like to just run the unit tests (which do not require Mountebank), run the following:

dotnet test --filter TestCategory=Unit

Similarly, you can filter to only the acceptance tests using --filter TestCategory=Acceptance.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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. 
.NET Core netcoreapp1.0 was computed.  netcoreapp1.1 was computed.  netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard1.3 is compatible.  netstandard1.4 was computed.  netstandard1.5 was computed.  netstandard1.6 was computed.  netstandard2.0 was computed.  netstandard2.1 was computed. 
.NET Framework net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen30 was computed.  tizen40 was computed.  tizen60 was computed. 
Universal Windows Platform uap was computed.  uap10.0 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on MbDotNet:

Package Downloads
Crude.FunctionalTesting.Dependency.Http

Package Description

MbDotNet.FSharp

An F# wrapper around MbDotNet

Crude.FunctionalTesting

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
5.0.0 118,408 4/5/2023
5.0.0-rc8 8,458 9/26/2022
5.0.0-rc7 16,069 4/15/2021
5.0.0-rc6 519,341 8/26/2020
5.0.0-rc5 486 7/30/2020
5.0.0-rc4 1,767 5/8/2020
5.0.0-rc3 46,924 2/11/2020
5.0.0-rc2 2,725 5/8/2019
5.0.0-rc1 12,115 11/28/2018
4.3.5 74,201 9/26/2022
4.3.4 148,825 12/17/2021
4.3.3 186,847 8/26/2020
4.3.2 15,397 7/30/2020
4.3.1 271,864 5/8/2019
4.3.0 12,622 11/16/2018
4.2.0 21,506 5/3/2018
4.1.0 2,507 4/4/2018
4.0.0 18,670 7/24/2017
3.1.0 26,182 4/21/2017
3.0.0 1,362 3/13/2017
2.2.0 3,246 9/13/2016
2.1.1 993 9/11/2016
2.1.0 1,072 8/16/2016
2.0.0 2,130 6/17/2016
1.3.0 1,941 3/1/2016
1.2.0 1,151 2/23/2016
1.1.0 1,138 2/19/2016
1.0.0 2,209 2/14/2016