Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

nuget.org : moksy

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.

Registry - Homepage - JSON
purl: pkg:nuget/moksy
Keywords: Automation, Testing, Test, Mock, Mocking, Stub, Stubbing, Fake, Http, Services
License:
Latest release: over 8 years ago
First release: almost 10 years ago
Downloads: 14,069 total
Last synced: 7 days ago

    Loading...
    Readme
    Loading...