EntityFrameworkCore.Testing.NSubstitute 2.2.1

There is a newer version of this package available.
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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<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.
<PackageVersion Include="EntityFrameworkCore.Testing.NSubstitute" Version="2.2.1" />
                    
Directory.Packages.props
<PackageReference Include="EntityFrameworkCore.Testing.NSubstitute" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add EntityFrameworkCore.Testing.NSubstitute --version 2.2.1
                    
#r "nuget: EntityFrameworkCore.Testing.NSubstitute, 2.2.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package EntityFrameworkCore.Testing.NSubstitute@2.2.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=EntityFrameworkCore.Testing.NSubstitute&version=2.2.1
                    
Install as a Cake Addin
#tool nuget:?package=EntityFrameworkCore.Testing.NSubstitute&version=2.2.1
                    
Install as a Cake Tool

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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 6,908 11/23/2025
10.0.0-rc01.1 885 10/27/2025
10.0.0-rc01 430 9/27/2025
9.0.2 4,189 11/23/2025
9.0.1 195,055 11/27/2024
9.0.1-rc01 155 11/26/2024
9.0.0 1,375 11/25/2024
9.0.0-rc02 146 11/23/2024
9.0.0-rc01 163 11/23/2024
8.1.2 3,664 10/29/2025
8.1.1 60,281 11/23/2024
8.1.0 6,223 11/23/2024
8.1.0-rc01 154 11/23/2024
8.0.0 330,090 11/24/2023
8.0.0-rc01 499 11/19/2023
5.0.0 132,432 1/4/2023
5.0.0-rc01 479 12/14/2022
4.0.2 86,732 6/11/2022
4.0.2-rc01 564 6/7/2022
4.0.1 1,001 6/7/2022
4.0.1-rc01 352 5/23/2022
4.0.0 35,401 11/15/2021
4.0.0-net6.preview.5 5,602 6/18/2021
4.0.0-net6.preview.4 372 5/25/2021
4.0.0-net6.preview.3 378 4/24/2021
3.0.5 5,935 6/11/2022
3.0.4 715 6/7/2022
3.0.4-beta01 1,466 5/16/2021
3.0.3 56,423 5/9/2021
3.0.3-rc01 498 5/9/2021
3.0.2 853 4/24/2021
3.0.2-rc02 485 4/24/2021
3.0.1 1,712 4/4/2021
3.0.1-rc01 566 4/4/2021
3.0.0 6,457 3/1/2021
2.4.5 1,129 6/11/2022
2.4.4 612 6/7/2022
2.4.3 4,116 5/15/2021
2.4.2 627 4/24/2021
2.4.2-rc01 428 4/24/2021
2.4.1 595 4/4/2021
2.4.1-rc01 505 4/4/2021
2.4.0 9,801 3/1/2021
2.3.2 21,198 11/14/2020
2.3.1 7,302 9/24/2020
2.3.0 9,380 9/20/2020
2.2.2 3,333 7/13/2020
2.2.1 1,733 5/22/2020
2.2.0 1,624 3/8/2020
2.1.0 1,497 1/22/2020
2.0.4 784 1/19/2020
2.0.3 865 1/5/2020
2.0.3-RC05 608 12/30/2019
2.0.3-RC04 627 12/28/2019
2.0.3-RC03 710 12/28/2019
2.0.3-RC02 640 12/22/2019
1.3.5 796 6/11/2022
1.3.4 688 6/7/2022
1.3.3 799 5/15/2021
1.3.2 618 4/24/2021
1.3.2-rc01 434 4/24/2021
1.3.1 669 4/4/2021
1.3.1-rc01 437 4/4/2021
1.3.0 1,009 3/1/2021
1.2.1 2,003 11/14/2020
1.2.0 772 9/20/2020
1.1.2 1,743 7/13/2020
1.1.1 893 5/22/2020
1.1.0 925 3/8/2020
1.0.7 799 1/19/2020
1.0.6 849 1/5/2020
1.0.6-RC04 638 12/28/2019
1.0.6-RC02 609 12/22/2019
1.0.5 831 12/17/2019
1.0.4 827 11/14/2019
1.0.3 867 11/11/2019
1.0.2 1,427 10/27/2019