EntityFrameworkCore.Testing.NSubstitute
3.0.0
See the version list below for details.
dotnet add package EntityFrameworkCore.Testing.NSubstitute --version 3.0.0
NuGet\Install-Package EntityFrameworkCore.Testing.NSubstitute -Version 3.0.0
<PackageReference Include="EntityFrameworkCore.Testing.NSubstitute" Version="3.0.0" />
paket add EntityFrameworkCore.Testing.NSubstitute --version 3.0.0
#r "nuget: EntityFrameworkCore.Testing.NSubstitute, 3.0.0"
// Install EntityFrameworkCore.Testing.NSubstitute as a Cake Addin #addin nuget:?package=EntityFrameworkCore.Testing.NSubstitute&version=3.0.0 // Install EntityFrameworkCore.Testing.NSubstitute as a Cake Tool #tool nuget:?package=EntityFrameworkCore.Testing.NSubstitute&version=3.0.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 | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. 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. |
-
.NETStandard 2.0
- Microsoft.EntityFrameworkCore.InMemory (>= 5.0.0 && < 6.0.0)
- Microsoft.EntityFrameworkCore.SqlServer (>= 5.0.0 && < 6.0.0)
- Microsoft.Extensions.Logging (>= 5.0.0)
- NSubstitute (>= 4.1.0)
- rgvlee.Core (>= 1.2.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 |
---|---|---|
8.0.0 | 170,756 | 11/24/2023 |
8.0.0-rc01 | 409 | 11/19/2023 |
5.0.0 | 109,402 | 1/4/2023 |
5.0.0-rc01 | 337 | 12/14/2022 |
4.0.2 | 74,376 | 6/11/2022 |
4.0.2-rc01 | 268 | 6/7/2022 |
4.0.1 | 809 | 6/7/2022 |
4.0.1-rc01 | 178 | 5/23/2022 |
4.0.0 | 32,960 | 11/15/2021 |
4.0.0-net6.preview.5 | 5,328 | 6/18/2021 |
4.0.0-net6.preview.4 | 209 | 5/25/2021 |
4.0.0-net6.preview.3 | 221 | 4/24/2021 |
3.0.5 | 3,256 | 6/11/2022 |
3.0.4 | 534 | 6/7/2022 |
3.0.4-beta01 | 1,310 | 5/16/2021 |
3.0.3 | 52,727 | 5/9/2021 |
3.0.3-rc01 | 307 | 5/9/2021 |
3.0.2 | 695 | 4/24/2021 |
3.0.2-rc02 | 316 | 4/24/2021 |
3.0.1 | 1,427 | 4/4/2021 |
3.0.1-rc01 | 378 | 4/4/2021 |
3.0.0 | 6,238 | 3/1/2021 |
2.4.5 | 801 | 6/11/2022 |
2.4.4 | 441 | 6/7/2022 |
2.4.3 | 3,525 | 5/15/2021 |
2.4.2 | 443 | 4/24/2021 |
2.4.2-rc01 | 259 | 4/24/2021 |
2.4.1 | 403 | 4/4/2021 |
2.4.1-rc01 | 337 | 4/4/2021 |
2.4.0 | 9,612 | 3/1/2021 |
2.3.2 | 20,344 | 11/14/2020 |
2.3.1 | 7,064 | 9/24/2020 |
2.3.0 | 9,179 | 9/20/2020 |
2.2.2 | 3,115 | 7/13/2020 |
2.2.1 | 1,447 | 5/22/2020 |
2.2.0 | 1,380 | 3/8/2020 |
2.1.0 | 1,283 | 1/22/2020 |
2.0.4 | 594 | 1/19/2020 |
2.0.3 | 655 | 1/5/2020 |
2.0.3-RC05 | 414 | 12/30/2019 |
2.0.3-RC04 | 442 | 12/28/2019 |
2.0.3-RC03 | 512 | 12/28/2019 |
2.0.3-RC02 | 436 | 12/22/2019 |
1.3.5 | 600 | 6/11/2022 |
1.3.4 | 520 | 6/7/2022 |
1.3.3 | 610 | 5/15/2021 |
1.3.2 | 431 | 4/24/2021 |
1.3.2-rc01 | 250 | 4/24/2021 |
1.3.1 | 479 | 4/4/2021 |
1.3.1-rc01 | 249 | 4/4/2021 |
1.3.0 | 805 | 3/1/2021 |
1.2.1 | 1,809 | 11/14/2020 |
1.2.0 | 553 | 9/20/2020 |
1.1.2 | 1,542 | 7/13/2020 |
1.1.1 | 656 | 5/22/2020 |
1.1.0 | 719 | 3/8/2020 |
1.0.7 | 605 | 1/19/2020 |
1.0.6 | 658 | 1/5/2020 |
1.0.6-RC04 | 431 | 12/28/2019 |
1.0.6-RC02 | 411 | 12/22/2019 |
1.0.5 | 619 | 12/17/2019 |
1.0.4 | 632 | 11/14/2019 |
1.0.3 | 634 | 11/11/2019 |
1.0.2 | 892 | 10/27/2019 |