EntityFrameworkCore.Testing.NSubstitute 2.2.1

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.2.1
dotnet add package EntityFrameworkCore.Testing.NSubstitute --version 2.2.1
<PackageReference Include="EntityFrameworkCore.Testing.NSubstitute" Version="2.2.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EntityFrameworkCore.Testing.NSubstitute --version 2.2.1
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.2.1 87 5/22/2020
2.2.0 419 3/8/2020
2.1.0 434 1/22/2020
2.0.4 106 1/19/2020
2.0.3 125 1/5/2020
2.0.3-RC05 93 12/30/2019
2.0.3-RC04 114 12/28/2019
2.0.3-RC03 180 12/28/2019
2.0.3-RC02 80 12/22/2019
1.1.1 65 5/22/2020
1.1.0 141 3/8/2020
1.0.7 96 1/19/2020
1.0.6 122 1/5/2020
1.0.6-RC04 103 12/28/2019
1.0.6-RC02 75 12/22/2019
1.0.5 66 12/17/2019
1.0.4 82 11/14/2019
1.0.3 62 11/11/2019
1.0.2 80 10/27/2019