Moksy 1.2.46
See the version list below for details.
dotnet add package Moksy --version 1.2.46
NuGet\Install-Package Moksy -Version 1.2.46
<PackageReference Include="Moksy" Version="1.2.46" />
paket add Moksy --version 1.2.46
#r "nuget: Moksy, 1.2.46"
// Install Moksy as a Cake Addin #addin nuget:?package=Moksy&version=1.2.46 // Install Moksy as a Cake Tool #tool nuget:?package=Moksy&version=1.2.46
Moksy is an open source .Net library for stubbing, mocking and simulating web services.
Intended to be driven from MsTest (or your favorite testing framework), Moksy will create a real HTTP Server end-point that your system under test or other services can hit.
For example:
Moksy.Common.Proxy proxy = new Moksy.Common.Proxy(10011);
proxy.Start();
var simulation = SimulationFactory.When.I.Get().From("/TheEndpoint").Then.Return.Body("Hello World!").And.StatusCode(System.Net.HttpStatusCode.OK);
proxy.Add(simulation);
Navigating to http://localhost:10011/TheEndpoint in your browser or hitting that Url from another service will return "Hello World!".
This release has a strong focus on testing JSON-based web services.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net40 is compatible. net403 was computed. net45 was computed. net451 was computed. net452 was computed. 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. |
-
- Microsoft.AspNet.WebApi.SelfHost (>= 5.2.0)
- Newtonsoft.Json (>= 6.0.3)
- RestSharp (>= 104.4.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Url Parameters are now supported in conditions; Contains; Header; BodyParameters all consistent.