Moksy 1.3.146
dotnet add package Moksy --version 1.3.146
NuGet\Install-Package Moksy -Version 1.3.146
<PackageReference Include="Moksy" Version="1.3.146" />
paket add Moksy --version 1.3.146
#r "nuget: Moksy, 1.3.146"
// Install Moksy as a Cake Addin #addin nuget:?package=Moksy&version=1.3.146 // Install Moksy as a Cake Tool #tool nuget:?package=Moksy&version=1.3.146
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)
GitHub repositories
This package is not used by any popular GitHub repositories.
Nested Imdb. ie: /Pet/{Kind}/Toy/{Name}/ etc; start Proxy with additional parameters (ie: logging); improved matching of headers (partial, urlencoded); lots of internal refactoring to improve IntelliSense experience; various bug fixes.