EntityFrameworkCore.Testing.Moq 1.2.1

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

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

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, FromSql, ExecuteSqlCommand, 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 netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  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 11,739 11/24/2023
8.0.0-rc01 384 11/19/2023
5.0.0 341,168 1/4/2023
5.0.0-rc01 2,418 12/14/2022
4.0.2 198,384 6/11/2022
4.0.2-rc01 575 6/7/2022
4.0.1 5,942 6/7/2022
4.0.1-rc01 510 5/23/2022
4.0.0 143,015 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,385 6/11/2022
3.0.4 1,011 6/7/2022
3.0.4-beta01 3,174 5/16/2021
3.0.3 55,648 5/9/2021
3.0.3-rc01 634 5/9/2021
3.0.2 8,415 4/24/2021
3.0.2-rc02 627 4/24/2021
3.0.2-rc01 572 4/24/2021
3.0.1 8,396 4/4/2021
3.0.1-rc01 711 4/4/2021
3.0.0 2,474 3/1/2021
2.4.5 10,866 6/11/2022
2.4.4 827 6/7/2022
2.4.3 83,968 5/15/2021
2.4.2 1,322 4/24/2021
2.4.2-rc01 673 4/24/2021
2.4.1 1,014 4/4/2021
2.4.1-rc01 651 4/4/2021
2.4.0 4,914 3/1/2021
2.3.3-beta05 714 1/28/2021
2.3.2 11,031 11/14/2020
2.3.1 22,302 9/24/2020
2.3.0 15,703 9/20/2020
2.2.2 8,709 7/13/2020
2.2.1 14,920 5/22/2020
2.2.0 3,928 3/8/2020
2.1.0 2,237 1/22/2020
2.0.4 1,046 1/19/2020
2.0.3 1,315 1/5/2020
2.0.3-RC04 879 12/28/2019
2.0.3-RC03 958 12/28/2019
2.0.3-RC02 811 12/22/2019
2.0.2 1,832 12/17/2019
2.0.1 1,234 11/14/2019
2.0.0 1,138 11/11/2019
1.3.5 2,143 6/11/2022
1.3.4 1,044 6/7/2022
1.3.3 2,021 5/15/2021
1.3.2 873 4/24/2021
1.3.2-rc01 693 4/24/2021
1.3.1 944 4/4/2021
1.3.1-rc01 709 4/4/2021
1.3.0 3,776 3/1/2021
1.2.1 6,220 11/14/2020
1.2.0 1,250 9/20/2020
1.1.2 2,513 7/13/2020
1.1.1 1,304 5/22/2020
1.1.0 6,545 3/8/2020
1.0.7 3,081 1/19/2020
1.0.6 1,118 1/5/2020
1.0.6-RC04 913 12/28/2019
1.0.6-RC02 844 12/22/2019
1.0.5 1,428 12/17/2019
1.0.4 11,275 11/14/2019
1.0.3 1,183 11/11/2019
1.0.2 1,460 10/27/2019
1.0.1 2,046 10/20/2019
1.0.0 1,210 10/20/2019