MockQueryable.EntityFrameworkCore 7.0.1

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.

#74 Fix ToListAsync() for mocked DbSet by using lazy-creation of AsyncEnumerator - Thanks @fischero19 #75 Added method for build DbSet from IEnumerable. - Thanks @sq735

Version Downloads Last updated
8.0.0 0 7/27/2025
7.0.4-beta 1 3/5/2025
7.0.3 2 3/5/2025
7.0.2 2 3/5/2025
7.0.1 2 3/5/2025
7.0.0 3 12/31/2023
6.0.1 2 3/5/2025
6.0.0 2 3/5/2025
5.0.2 2 3/5/2025
5.0.1 2 3/5/2025
5.0.0 2 3/5/2025
5.0.0-preview.7 1 3/5/2025
3.1.3 2 3/5/2025