MockQueryable.NSubstitute NuGet Package

Core package for MockQueryable extensions for mocking operations such ToListAsync, FirstOrDefaultAsync etc.
When writing tests for your application it is often desirable to avoid hitting the database.

The extension allows you to achieve this by creating a context – with behavior defined by your tests – that makes use of in-memory data.




Got any MockQueryable.NSubstitute Question?





Info

Version: 9.0.0
Author(s): Roman Titov
Last Update: Monday, October 6, 2025
.NET Fiddle: Create the first Fiddle
Project Url: https://github.com/romantitov/MockQueryable
NuGet Url: https://www.nuget.org/packages/MockQueryable.NSubstitute


Install
Install-Package MockQueryable.NSubstitute
dotnet add package MockQueryable.NSubstitute
paket add MockQueryable.NSubstitute
MockQueryable.NSubstitute Download (Unzip the "nupkg" after downloading)



Tags



STATS

must-have-score

6.3

avg-downloads-per-day

1789

days-since-last-release

14