EntityFrameworkCore.Testing.Moq 2.4.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package EntityFrameworkCore.Testing.Moq --version 2.4.0
NuGet\Install-Package EntityFrameworkCore.Testing.Moq -Version 2.4.0
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.Moq" Version="2.4.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EntityFrameworkCore.Testing.Moq --version 2.4.0
#r "nuget: EntityFrameworkCore.Testing.Moq, 2.4.0"
#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.
// Install EntityFrameworkCore.Testing.Moq as a Cake Addin
#addin nuget:?package=EntityFrameworkCore.Testing.Moq&version=2.4.0

// Install EntityFrameworkCore.Testing.Moq as a Cake Tool
#tool nuget:?package=EntityFrameworkCore.Testing.Moq&version=2.4.0

EntityFrameworkCore.Testing allows you to create an EntityFrameworkCore DbContext that you can use in your unit tests. It's easy to use (usually just a single line of code) with implementations for both Moq and NSubstitute.

It extends the functionality of an existing database provider by proxying over it. It was designed with the Microsoft in-memory provider in mind with supported operations sent to the database provider and unsupported operations, such as relational operations, handled by EntityFrameworkCore.Testing. While it does not attempt to mock supported operations, it does proxy over them using a mocking framework so you get all of the benefits of the latter such as being able to assert an invocation.

It includes support for queries/keyless db sets, FromSql/FromSqlRaw/FromSqlInterpolated, ExecuteSqlCommand/ExecuteSqlRaw/ExecuteSqlInterpolated, and async LINQ operations.

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. 
.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
8.0.0 13,993 11/24/2023
8.0.0-rc01 402 11/19/2023
5.0.0 349,062 1/4/2023
5.0.0-rc01 2,469 12/14/2022
4.0.2 200,824 6/11/2022
4.0.2-rc01 584 6/7/2022
4.0.1 6,016 6/7/2022
4.0.1-rc01 538 5/23/2022
4.0.0 143,546 11/15/2021
4.0.0-net6.preview.5 467 6/18/2021
4.0.0-net6.preview.4 210 5/25/2021
4.0.0-net6.preview.3 226 4/24/2021
3.0.5 9,492 6/11/2022
3.0.4 1,029 6/7/2022
3.0.4-beta01 3,194 5/16/2021
3.0.3 55,749 5/9/2021
3.0.3-rc01 652 5/9/2021
3.0.2 8,433 4/24/2021
3.0.2-rc02 649 4/24/2021
3.0.2-rc01 588 4/24/2021
3.0.1 8,441 4/4/2021
3.0.1-rc01 730 4/4/2021
3.0.0 2,475 3/1/2021
2.4.5 11,063 6/11/2022
2.4.4 853 6/7/2022
2.4.3 84,429 5/15/2021
2.4.2 1,331 4/24/2021
2.4.2-rc01 701 4/24/2021
2.4.1 1,032 4/4/2021
2.4.1-rc01 676 4/4/2021
2.4.0 4,944 3/1/2021
2.3.3-beta05 740 1/28/2021
2.3.2 11,052 11/14/2020
2.3.1 22,346 9/24/2020
2.3.0 15,728 9/20/2020
2.2.2 8,748 7/13/2020
2.2.1 15,192 5/22/2020
2.2.0 3,938 3/8/2020
2.1.0 2,276 1/22/2020
2.0.4 1,078 1/19/2020
2.0.3 1,329 1/5/2020
2.0.3-RC04 914 12/28/2019
2.0.3-RC03 989 12/28/2019
2.0.3-RC02 843 12/22/2019
2.0.2 1,855 12/17/2019
2.0.1 1,255 11/14/2019
2.0.0 1,155 11/11/2019
1.3.5 2,180 6/11/2022
1.3.4 1,062 6/7/2022
1.3.3 2,068 5/15/2021
1.3.2 888 4/24/2021
1.3.2-rc01 716 4/24/2021
1.3.1 962 4/4/2021
1.3.1-rc01 737 4/4/2021
1.3.0 3,801 3/1/2021
1.2.1 6,247 11/14/2020
1.2.0 1,274 9/20/2020
1.1.2 2,548 7/13/2020
1.1.1 1,336 5/22/2020
1.1.0 6,578 3/8/2020
1.0.7 3,108 1/19/2020
1.0.6 1,143 1/5/2020
1.0.6-RC04 949 12/28/2019
1.0.6-RC02 872 12/22/2019
1.0.5 1,451 12/17/2019
1.0.4 11,337 11/14/2019
1.0.3 1,208 11/11/2019
1.0.2 1,493 10/27/2019
1.0.1 2,065 10/20/2019
1.0.0 1,233 10/20/2019