MockQueryable.EntityFrameworkCore 5.0.2
Extension for mocking Entity Framework Core 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.
No packages depend on MockQueryable.EntityFrameworkCore.
Used TestAsyncEnumerableEfCore directly to improve performance (issue #55). Special thanks @natehitze Nate Hitze for the contribution.
.NET Standard 2.1
- MockQueryable.Core (>= 5.0.2)
- Microsoft.EntityFrameworkCore (>= 5.0.0)