Moksy 1.3.169
dotnet add package Moksy --version 1.3.169
NuGet\Install-Package Moksy -Version 1.3.169
<PackageReference Include="Moksy" Version="1.3.169" />
paket add Moksy --version 1.3.169
#r "nuget: Moksy, 1.3.169"
// Install Moksy as a Cake Addin #addin nuget:?package=Moksy&version=1.3.169 // Install Moksy as a Cake Tool #tool nuget:?package=Moksy&version=1.3.169
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.3)
- Newtonsoft.Json (>= 7.0.1)
- RestSharp (>= 105.2.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
169: .CleanImdb() now part of simulation; Exists/NotExists no longer need an index for Imdb; (ALPHA: Object selection using JsonPath before adding to Imdb)