A simple abstraction on top of the Dapper extension synchronous and asynchronous methods to aid testability. This is based on the original code by Andrew Miller.
When writing unit tests for any code that uses dependency injection, and when using a mocking framework, we need to declare and inject any dependency we have. This is repetitive and boring code to write, especially on classes with many dependencies. AutoMock solves this by creating mocks/stubs on the fly for a given class together with an instance of it.
Shiny mocks to make your unit testing life easier
A C# Client for the MockServer Docker Image
SystemWrapper is a library that wraps .NET classes for system resources like System.IO.FileInfo, System.Reflection.Assembly, and many other classes so you can easily mock them. This particular build of SystemWrapper is strongly-named from revision 94877.
C++ Google test and Google mock libraries compiled as static libraries for Windows using v140 Visual C++ toolset.
In-memory implementation of the Azure Service Bus clients for convenient testing.
A mocking framework to mock HttpClient requests.
SimpleStubs is a simple C# mocking framework that supports Universal Windows Platform (UWP), .NET Core and .NET framework.
An Opinionated Auto Mocker for Moq that acts like a IoC Container and creates default mocks recursively, all you have to do is verify.
Library to help simplify unit testing code which uses the .NET HttpClient
Mocks for Eternity Project, Long running workflows with ability to suspend and replay the workflow in future.
A lightweight NavigationManager test double for Blazor
*TestBase* gets you off to a flying start when unit testing projects with dependencies. TestBase-Mvc adds a rich extensible set of fluent assertions for verifying Mvc ActionResults and for easy setup of ControllerContext and HttpContext for both Mvc and WebApi TestBase.Shoulds ------------------- Chainable fluent assertions get you to the point concisely ControllerUnderTest.Action() .ShouldbeViewResult() .ShouldHaveModel<TModel>() .ShouldEqualByValue(expected) ControllerUnderTest.Action() .ShouldBeRedirectToRouteResult() .ShouldHaveRouteValue("expectedKey", [Optional] "expectedValue"); ShouldHaveViewDataContaining(), ShouldBeJsonResult() etc. TestBase ---------- Controller extensions to fake the http request & context. By injecting the RegisterRoutes method of your MvcApplication, you can use and test Controller.Url with your application's configured routes. ControllerUnderTest .WithHttpContextAndRoutes( [Optional] Action<RouteCollection> mvcApplicationRoutesRegistration, [optional] string requestUrl, [Optional] string query = "", [Optional] string appVirtualPath = "/", [Optional] HttpApplication applicationInstance) ApiControllerUnderTest.WithWebApiHttpContext<T>( HttpMethod httpMethod, [Optional] string requestUri, [Optional] string routeTemplate)
A lean collection of classes to make it easier to mock multiple dependencies for a unit test.
A now redundant abstraction of Hangfire's job processing functionality for the original purpose of mocking Hangfire. Abstracts background processing related use cases via an IBackgroundProcessor interface, required in the days that Hangfire still has static entry points to its functionality.
Micro document database with a focus on visibility & simplicity. The same 35kb dll is used for: - Saving data to text file(s) locally - Optionally hosting and connecting to a HTTP Embark server - Optional runtime-only persistence for unit testing/mocks - Doesn't force any ID or [Attribute] conventions you that you must use - Still, optional convention based interaction is avaliable. - Flexible constructor injection for custom behaviour of data storage and/or serialization. Examples & source @ http://ideaflare.github.io/embark Feedback, suggestions & pull requests welcome!
Speed up your unit test writing by using this helper that leverages AutoMocker to automatically mock dependencies.
A simple http server for using as a mock in test projects
FakeXrmEasy is the open source test automation framework for .net core and the Power Platform. This is the core package containing a configurable middleware, crud operators, and query translation between FetchXml, QueryExpression, CRM LINQ, and QueryByAttribute.
FunFair Common Test Infrastructure - framework-agnostic mocks, helpers, and extensions for building tests.
UmbracoContext and ApplicationContext mocking helper for Umbraco 7 unit testing
MassiveDynamicProxyGenerator.SimpleInjector is library of extensions method for IoC container - Simple Injector. Adding methods for register mock implementations, proxys, instance proxies for resolving circular depndencies or lazy initialization and interpetion for decoration instances.
ILogger verification helpers for TUnit.Mocks. Enables fluent verification of log calls without dealing with the complex Log<TState>() signature.
Provides the initial skeleton to write specs/tests for client side scripts in ASP.NET MVC Application.
Testing helpers for using Ninject.MockingKernel.Moq with EntityFramework.
An auto-substitute/mock generating container that creates mocks using NSubstitute
Provides an auto-mocking container with an intuitive extensible API for creating test specimens. Commonly Used Types: PanMoq.AutoMoqFixture
This package contains a base fixture class with numerous helper methods to assist with scaffolding unit tests.
An easy to use mockable clock. Pass WallClock to your services in production/dev code and use MockClock in unit tests; or, if you don't want to pass around a clock, do Clock.Default = new MockClock(); in your unit tests.
A mocking library that creates LazyCache IAppCache system mocks using NSubstitute.
C++ Google test and Google mock libraries compiled as static libraries for Windows using v141 Visual C++ toolset.
A modern, strongly-typed, AOT-compatible mocking library for .NET, powered by source generators.
Intercept calls on wrappers around unmockable objects.
Hyperbolic Solutions simple mocking framework for unit testing