MbDotNet 5.0.0
dotnet add package MbDotNet --version 5.0.0
NuGet\Install-Package MbDotNet -Version 5.0.0
<PackageReference Include="MbDotNet" Version="5.0.0" />
paket add MbDotNet --version 5.0.0
#r "nuget: MbDotNet, 5.0.0"
// 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
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 | Versions 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. |
-
.NETStandard 1.3
- NETStandard.Library (>= 1.6.1)
- Newtonsoft.Json (>= 13.0.1)
- System.Xml.XmlSerializer (>= 4.3.0)
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 | 264,319 | 4/5/2023 |
5.0.0-rc8 | 12,285 | 9/26/2022 |
5.0.0-rc7 | 19,644 | 4/15/2021 |
5.0.0-rc6 | 542,698 | 8/26/2020 |
5.0.0-rc5 | 522 | 7/30/2020 |
5.0.0-rc4 | 1,803 | 5/8/2020 |
5.0.0-rc3 | 48,568 | 2/11/2020 |
5.0.0-rc2 | 2,805 | 5/8/2019 |
5.0.0-rc1 | 12,198 | 11/28/2018 |
4.3.5 | 85,991 | 9/26/2022 |
4.3.4 | 194,929 | 12/17/2021 |
4.3.3 | 196,057 | 8/26/2020 |
4.3.2 | 16,767 | 7/30/2020 |
4.3.1 | 280,231 | 5/8/2019 |
4.3.0 | 12,753 | 11/16/2018 |
4.2.0 | 21,573 | 5/3/2018 |
4.1.0 | 2,706 | 4/4/2018 |
4.0.0 | 19,124 | 7/24/2017 |
3.1.0 | 28,142 | 4/21/2017 |
3.0.0 | 1,444 | 3/13/2017 |
2.2.0 | 3,310 | 9/13/2016 |
2.1.1 | 1,030 | 9/11/2016 |
2.1.0 | 1,204 | 8/16/2016 |
2.0.0 | 2,208 | 6/17/2016 |
1.3.0 | 1,995 | 3/1/2016 |
1.2.0 | 1,209 | 2/23/2016 |
1.1.0 | 1,190 | 2/19/2016 |
1.0.0 | 2,321 | 2/14/2016 |