EntityFrameworkCore.Testing.Moq
2.3.3-beta05
See the version list below for details.
dotnet add package EntityFrameworkCore.Testing.Moq --version 2.3.3-beta05
NuGet\Install-Package EntityFrameworkCore.Testing.Moq -Version 2.3.3-beta05
<PackageReference Include="EntityFrameworkCore.Testing.Moq" Version="2.3.3-beta05" />
paket add EntityFrameworkCore.Testing.Moq --version 2.3.3-beta05
#r "nuget: EntityFrameworkCore.Testing.Moq, 2.3.3-beta05"
// Install EntityFrameworkCore.Testing.Moq as a Cake Addin #addin nuget:?package=EntityFrameworkCore.Testing.Moq&version=2.3.3-beta05&prerelease // Install EntityFrameworkCore.Testing.Moq as a Cake Tool #tool nuget:?package=EntityFrameworkCore.Testing.Moq&version=2.3.3-beta05&prerelease
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 | 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. |
.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 && < 5.0.0)
- Microsoft.EntityFrameworkCore.SqlServer (>= 3.0.0 && < 5.0.0)
- Microsoft.Extensions.Logging (>= 3.0.0)
- Moq (>= 4.9.0)
- rgvlee.Core (>= 1.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on EntityFrameworkCore.Testing.Moq:
Package | Downloads |
---|---|
Nanis.RepositoryCriteria.EntityFrameworkCore
Nanis.RepositoryCriteria.EntityFrameworkCore is a library designed to implement an abstraction of the **Repository** pattern using **Entity Framework**. This library also implements the **Unit of Work** pattern to manage database transactions and commits, and the **Criteria** pattern to build complex queries with logical operators and criteria composition. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
9.0.1 | 43 | 11/27/2024 |
9.0.1-rc01 | 38 | 11/26/2024 |
9.0.0 | 144 | 11/25/2024 |
9.0.0-rc02 | 39 | 11/23/2024 |
9.0.0-rc01 | 38 | 11/23/2024 |
8.1.1 | 392 | 11/23/2024 |
8.1.0 | 62 | 11/23/2024 |
8.1.0-rc01 | 33 | 11/23/2024 |
8.0.0 | 123,018 | 11/24/2023 |
8.0.0-rc01 | 443 | 11/19/2023 |
5.0.0 | 489,218 | 1/4/2023 |
5.0.0-rc01 | 2,613 | 12/14/2022 |
4.0.2 | 238,745 | 6/11/2022 |
4.0.2-rc01 | 616 | 6/7/2022 |
4.0.1 | 6,797 | 6/7/2022 |
4.0.1-rc01 | 567 | 5/23/2022 |
4.0.0 | 150,787 | 11/15/2021 |
4.0.0-net6.preview.5 | 479 | 6/18/2021 |
4.0.0-net6.preview.4 | 219 | 5/25/2021 |
4.0.0-net6.preview.3 | 242 | 4/24/2021 |
3.0.5 | 10,788 | 6/11/2022 |
3.0.4 | 1,064 | 6/7/2022 |
3.0.4-beta01 | 3,229 | 5/16/2021 |
3.0.3 | 58,323 | 5/9/2021 |
3.0.3-rc01 | 692 | 5/9/2021 |
3.0.2 | 8,485 | 4/24/2021 |
3.0.2-rc02 | 692 | 4/24/2021 |
3.0.2-rc01 | 624 | 4/24/2021 |
3.0.1 | 8,714 | 4/4/2021 |
3.0.1-rc01 | 754 | 4/4/2021 |
3.0.0 | 2,546 | 3/1/2021 |
2.4.5 | 14,691 | 6/11/2022 |
2.4.4 | 880 | 6/7/2022 |
2.4.3 | 84,828 | 5/15/2021 |
2.4.2 | 1,382 | 4/24/2021 |
2.4.2-rc01 | 726 | 4/24/2021 |
2.4.1 | 1,062 | 4/4/2021 |
2.4.1-rc01 | 704 | 4/4/2021 |
2.4.0 | 5,085 | 3/1/2021 |
2.3.3-beta05 | 764 | 1/28/2021 |
2.3.2 | 11,231 | 11/14/2020 |
2.3.1 | 22,633 | 9/24/2020 |
2.3.0 | 15,938 | 9/20/2020 |
2.2.2 | 9,421 | 7/13/2020 |
2.2.1 | 16,422 | 5/22/2020 |
2.2.0 | 4,066 | 3/8/2020 |
2.1.0 | 2,323 | 1/22/2020 |
2.0.4 | 1,106 | 1/19/2020 |
2.0.3 | 1,373 | 1/5/2020 |
2.0.3-RC04 | 942 | 12/28/2019 |
2.0.3-RC03 | 1,035 | 12/28/2019 |
2.0.3-RC02 | 874 | 12/22/2019 |
2.0.2 | 1,910 | 12/17/2019 |
2.0.1 | 1,302 | 11/14/2019 |
2.0.0 | 1,279 | 11/11/2019 |
1.3.5 | 2,312 | 6/11/2022 |
1.3.4 | 1,108 | 6/7/2022 |
1.3.3 | 2,185 | 5/15/2021 |
1.3.2 | 927 | 4/24/2021 |
1.3.2-rc01 | 743 | 4/24/2021 |
1.3.1 | 992 | 4/4/2021 |
1.3.1-rc01 | 767 | 4/4/2021 |
1.3.0 | 3,877 | 3/1/2021 |
1.2.1 | 6,286 | 11/14/2020 |
1.2.0 | 1,320 | 9/20/2020 |
1.1.2 | 2,776 | 7/13/2020 |
1.1.1 | 1,394 | 5/22/2020 |
1.1.0 | 6,628 | 3/8/2020 |
1.0.7 | 3,157 | 1/19/2020 |
1.0.6 | 1,193 | 1/5/2020 |
1.0.6-RC04 | 989 | 12/28/2019 |
1.0.6-RC02 | 916 | 12/22/2019 |
1.0.5 | 1,503 | 12/17/2019 |
1.0.4 | 12,092 | 11/14/2019 |
1.0.3 | 1,237 | 11/11/2019 |
1.0.2 | 1,986 | 10/27/2019 |
1.0.1 | 2,095 | 10/20/2019 |
1.0.0 | 1,307 | 10/20/2019 |