EntityFrameworkCore.ContextBackedMock.Moq
0.0.1
dotnet add package EntityFrameworkCore.ContextBackedMock.Moq --version 0.0.1
NuGet\Install-Package EntityFrameworkCore.ContextBackedMock.Moq -Version 0.0.1
<PackageReference Include="EntityFrameworkCore.ContextBackedMock.Moq" Version="0.0.1" />
paket add EntityFrameworkCore.ContextBackedMock.Moq --version 0.0.1
#r "nuget: EntityFrameworkCore.ContextBackedMock.Moq, 0.0.1"
// Install EntityFrameworkCore.ContextBackedMock.Moq as a Cake Addin
#addin nuget:?package=EntityFrameworkCore.ContextBackedMock.Moq&version=0.0.1
// Install EntityFrameworkCore.ContextBackedMock.Moq as a Cake Tool
#tool nuget:?package=EntityFrameworkCore.ContextBackedMock.Moq&version=0.0.1
Allows you to create a mock DbContext (and mock DbSets) and have it backed by an actual DbContext.
It's designed to work with the Microsoft InMemory provider (https://docs.microsoft.com/en-us/ef/core/miscellaneous/testing/in-memory) that is
often used for testing. The InMemory provider is great for most cases however it doesn't do everything. That's where
this library steps in. It has specific functionality to allow operations involving the FromSql extension to be included
in your tests, as well as all of the benefits of using a mocking framework (e.g., the ability to verify method invocation).
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 | netcoreapp2.1 is compatible. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
-
.NETCoreApp 2.1
- Microsoft.EntityFrameworkCore.InMemory (>= 2.2.4)
- Microsoft.EntityFrameworkCore.SqlServer (>= 2.2.4)
- Moq (>= 4.12.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 |
---|