EntityFrameworkCore.Testing.NSubstitute
2.2.1
See the version list below for details.
dotnet add package EntityFrameworkCore.Testing.NSubstitute --version 2.2.1
NuGet\Install-Package EntityFrameworkCore.Testing.NSubstitute -Version 2.2.1
<PackageReference Include="EntityFrameworkCore.Testing.NSubstitute" Version="2.2.1" />
<PackageVersion Include="EntityFrameworkCore.Testing.NSubstitute" Version="2.2.1" />
<PackageReference Include="EntityFrameworkCore.Testing.NSubstitute" />
paket add EntityFrameworkCore.Testing.NSubstitute --version 2.2.1
#r "nuget: EntityFrameworkCore.Testing.NSubstitute, 2.2.1"
#:package EntityFrameworkCore.Testing.NSubstitute@2.2.1
#addin nuget:?package=EntityFrameworkCore.Testing.NSubstitute&version=2.2.1
#tool nuget:?package=EntityFrameworkCore.Testing.NSubstitute&version=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.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.1 is compatible. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Microsoft.EntityFrameworkCore.InMemory (>= 3.0.0)
- Microsoft.EntityFrameworkCore.SqlServer (>= 3.0.0)
- Microsoft.Extensions.Logging (>= 3.0.0)
- NSubstitute (>= 4.1.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 10.0.0 | 53,802 | 11/23/2025 |
| 10.0.0-rc01.1 | 1,332 | 10/27/2025 |
| 10.0.0-rc01 | 822 | 9/27/2025 |
| 9.0.2 | 18,993 | 11/23/2025 |
| 9.0.1 | 237,435 | 11/27/2024 |
| 9.0.1-rc01 | 191 | 11/26/2024 |
| 9.0.0 | 1,960 | 11/25/2024 |
| 9.0.0-rc02 | 171 | 11/23/2024 |
| 9.0.0-rc01 | 189 | 11/23/2024 |
| 8.1.2 | 11,243 | 10/29/2025 |
| 8.1.1 | 70,761 | 11/23/2024 |
| 8.1.0 | 6,790 | 11/23/2024 |
| 8.1.0-rc01 | 190 | 11/23/2024 |
| 8.0.0 | 365,603 | 11/24/2023 |
| 8.0.0-rc01 | 524 | 11/19/2023 |
| 5.0.0 | 134,195 | 1/4/2023 |
| 5.0.0-rc01 | 503 | 12/14/2022 |
| 4.0.2 | 87,853 | 6/11/2022 |
| 3.0.5 | 6,350 | 6/11/2022 |
| 2.2.1 | 1,775 | 5/22/2020 |