22 packages tagged with “stubbing”
It's faking amazing! The easy mocking library for .NET that works great in C# and VB.NET alike. No need to know the difference between a stub, a mock or a spy, everything's a fake! The easy to use, refactoring friendly API makes faking a breeze.
The most powerful free mocking library available for .NET developers.
Foq is a lightweight thread-safe mocking library for F#, C#, and VB with a similar API to Moq.
Stubbing with the purpose to stub HttpClient communication to a external dependency
A .Net Library for Hoverfly
This package contains a base fixture class with numerous helper methods to assist with scaffolding unit tests.
[CORE] .NET C#: Arrange Context is a simple Tool to automatically initialize your system-under-test with mocked instances.
This package extends AllOverIt.Fixture to support FakeItEasy integration.
**SystemTestingTools** (for .net core 3.1+) extends your test capabilities, providing ways to create / return stubs, allowing you to run more comprehensive / deterministic / reliable tests in your local dev machine / build tool and in non-prod environments. * supporting interception of Http (HttpClient or WCF) calls: * before they are sent, returning stubs (ideal for automated testing) * after they are sent, where you can save the request and response (recording), log appropriately or replace bad responses by stubs (ideal for dev/test environments that are flaky or not ready) * asserting outgoing calls (ie: making sure out downstream calls have SessionIds) * intercept logs and run asserts on them
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.
The Moq.FSharp.Extensions provide extension methods and functions to enhance the Moq experience in F#.
[MOQ] .NET C#: Arrange Context is a simple Tool to automatically initialize your system-under-test with mocked instances.
DynMock is a mocking framework supports dynamic classes. Also, DynMock's current comparative tests shows that it can run mock significantly faster than FakeItEasy, Moq, and NSubstitute. Note that the current DynMock comparative tests for Moq and NSubstitute are not covering most of their functionality.
[NSUBSTITUTE] .NET C#: Arrange Context is a simple Tool to automatically initialize your system-under-test with mocked instances.
[FAKEITEASY] .NET C#: Arrange Context is a simple Tool to automatically initialize your system-under-test with mocked instances.
[RHINOMOCKS] .NET C#: Arrange Context is a simple Tool to automatically initialize your system-under-test with mocked instances.
Deleporter Core (use Deleporter.Server/Deleporter.Client for easy setup) - Simple Cross Process Stubbing. Deleporter is a lightweight .NET library that teleports arbitrary delegates into an ASP.NET application in some other process (e.g. hosted in IIS) and runs them there. One use case is stubbing out dependencies when running automated browser tests. See author Steve Sanderson's excellent post on Deleporter at http://blog.stevensanderson.com/2010/03/09/deleporter-cross-process-code-injection-for-aspnet. Source code available at https://github.com/StuartLeitch/Deleporter.
Deleporter - Simple Cross Process Stubbing. Facilitates stubbing out dependencies when running automated browser tests against ASP.Net. Use in conjunction with your favorite mocking/IOC frameworks. Deleporter will teleport mock objects (or any arbitrary delegates) into a remote ASP.Net application, allowing you to swapping out dependencies and reduce test fragility or test complex scenarios. Also includes Cassini/IIS Express and Selenium Server automation to provide a fully seamless test experience. Install this package in your ASP.Net Web Application and Deleporter.Client in your test project. See the project homepage for more details. Source code available at https://github.com/StuartLeitch/Deleporter.
Deleporter - Simple Cross Process Stubbing. Facilitates stubbing out dependencies when running automated browser tests against ASP.Net. Use in conjunction with your favorite mocking/IOC frameworks. Deleporter will teleport mock objects (or any arbitrary delegates) into a remote ASP.Net application, allowing you to swapping out dependencies and reduce test fragility or test complex scenarios. Also includes Cassini/IIS Express and Selenium Server automation to provide a fully seamless test experience. Install this package in your test project and Deleporter.Server in your ASP.Net Web project (MVC or WebForms). See the project homepage for more details. Source code available at https://github.com/StuartLeitch/Deleporter.
Adds the current SeleniumServer.jar (27MB) to the project (requires Java to run - http://java.com). Pulls in Selenium.Support. Useful for headless browser testing where you don't want to be bothered with setting up Selenium Server. Note, if you already have a SeleniumServer.jar on your system, you can use the configuration available in Deleporter.Client to set the location to this and you will not need this package. See Deleporter.Client for more info. Source code available at https://github.com/StuartLeitch/Deleporter.
Foq2 is a lightweight thread-safe mocking library for F# 4 with a similar API to Moq.