EntityFrameworkCore.Testing.NSubstitute 2.1.0

A mocking library for EntityFrameworkCore (EFCore) using NSubstitute. Provides a functionally complete DbContext for your tests.

This is achieved by extending the in-memory provider, mocking relational and queryable operations to provide support for Queries/Keyless DbSets, FromSqlRaw/FromSqlInterpolated, ExecuteSqlCommand/ExecuteSqlRaw/ExecuteSqlInterpolated, and async LINQ operations.

Support is also provided for other LINQ operations not supported by the in-memory provider, such as ElementAt, SkipWhile, TakeWhile, etc.

Install-Package EntityFrameworkCore.Testing.NSubstitute -Version 2.1.0
dotnet add package EntityFrameworkCore.Testing.NSubstitute --version 2.1.0
<PackageReference Include="EntityFrameworkCore.Testing.NSubstitute" Version="2.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EntityFrameworkCore.Testing.NSubstitute --version 2.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
2.1.0 124 1/22/2020
2.0.4 77 1/19/2020
2.0.3 94 1/5/2020
2.0.3-RC05 72 12/30/2019
2.0.3-RC04 90 12/28/2019
2.0.3-RC03 162 12/28/2019
2.0.3-RC02 60 12/22/2019
1.0.7 74 1/19/2020
1.0.6 81 1/5/2020
1.0.6-RC04 85 12/28/2019
1.0.6-RC02 56 12/22/2019
1.0.5 49 12/17/2019
1.0.4 64 11/14/2019
1.0.3 45 11/11/2019
1.0.2 60 10/27/2019