Extension for mocking Entity Framework Core operations such ToListAsync, FirstOrDefaultAsync etc. by NSubstitute
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.
See the version list below for details.
Install-Package MockQueryable.NSubstitute -Version 1.0.3
dotnet add package MockQueryable.NSubstitute --version 1.0.3
<PackageReference Include="MockQueryable.NSubstitute" Version="1.0.3" />
paket add MockQueryable.NSubstitute --version 1.0.3
Added DbSet support