Krumb.MockingToolbox.EntityFrameworkCore 0.1.5

dotnet add package Krumb.MockingToolbox.EntityFrameworkCore --version 0.1.5
                    
NuGet\Install-Package Krumb.MockingToolbox.EntityFrameworkCore -Version 0.1.5
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Krumb.MockingToolbox.EntityFrameworkCore" Version="0.1.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Krumb.MockingToolbox.EntityFrameworkCore" Version="0.1.5" />
                    
Directory.Packages.props
<PackageReference Include="Krumb.MockingToolbox.EntityFrameworkCore" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Krumb.MockingToolbox.EntityFrameworkCore --version 0.1.5
                    
#r "nuget: Krumb.MockingToolbox.EntityFrameworkCore, 0.1.5"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Krumb.MockingToolbox.EntityFrameworkCore@0.1.5
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Krumb.MockingToolbox.EntityFrameworkCore&version=0.1.5
                    
Install as a Cake Addin
#tool nuget:?package=Krumb.MockingToolbox.EntityFrameworkCore&version=0.1.5
                    
Install as a Cake Tool

Krumb.MockingToolbox

A web dashboard for mocking outgoing HTTP calls from typed HttpClients in ASP.NET Core apps during testing.

Point it at any app using IHttpClientFactory and it automatically discovers every outgoing call, lets testers mock specific endpoints (with per-id targeting, scenarios, and a global kill switch) from a web dashboard, and requires zero code changes to the calling code itself.

Features

  • Zero-touch discovery - a global IHttpMessageHandlerBuilderFilter auto-wires every registered HttpClient. No attributes, no per-client opt-in required.
  • Per-endpoint, per-id mocking - mock GET /orders/{id} for every id, or just id 123, independently.
  • Scenarios - bundle multiple mocks into a named preset ("Payment provider down"). Activating one snapshots and restores every other mock's state automatically.
  • Global kill switch - disable all mocking instantly from the dashboard, without a redeploy, and it survives an app restart.
  • Staleness tracking - endpoints not seen in a configurable window get flagged, so stale mocks don't silently rot.

Install

This package alone only gives you the dashboard and discovery engine - you also need a storage provider:

Quick start (with PostgreSQL storage)

services.AddMockingToolbox(options =>
{
    options.IsEnabled = environment.IsDevelopment() || environment.IsStaging();
    options.DashboardPath = "/mocking";
    options.UsePostgreSql(connectionString);
});
app.UseMockingToolbox();

That's it. Every AddHttpClient<...>() registration in the app is wired automatically. Open /mocking to see every discovered endpoint and start mocking.

Documentation

Full source and configuration reference: GitHub repository.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Krumb.MockingToolbox.EntityFrameworkCore:

Package Downloads
Krumb.MockingToolbox.EntityFrameworkCore.PostgreSql

Self-contained PostgreSQL storage for Krumb.MockingToolbox - the recommended package for most users. Migrations are pre-baked in, so consuming apps never need EF Tools or migration files of their own.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.5 131 7/22/2026
0.1.4 119 7/22/2026