XBullet.EasyTesting.EntityFrameworkCore
1.0.3
See the version list below for details.
dotnet add package XBullet.EasyTesting.EntityFrameworkCore --version 1.0.3
NuGet\Install-Package XBullet.EasyTesting.EntityFrameworkCore -Version 1.0.3
<PackageReference Include="XBullet.EasyTesting.EntityFrameworkCore" Version="1.0.3" />
<PackageVersion Include="XBullet.EasyTesting.EntityFrameworkCore" Version="1.0.3" />
<PackageReference Include="XBullet.EasyTesting.EntityFrameworkCore" />
paket add XBullet.EasyTesting.EntityFrameworkCore --version 1.0.3
#r "nuget: XBullet.EasyTesting.EntityFrameworkCore, 1.0.3"
#:package XBullet.EasyTesting.EntityFrameworkCore@1.0.3
#addin nuget:?package=XBullet.EasyTesting.EntityFrameworkCore&version=1.0.3
#tool nuget:?package=XBullet.EasyTesting.EntityFrameworkCore&version=1.0.3
XBullet.EasyTesting.EntityFrameworkCore
Entity Framework Core database actions and test-factory support for XBullet.EasyTesting integration tests.
The package targets .NET 8 and .NET 10.
Install
dotnet add package XBullet.EasyTesting.EntityFrameworkCore
Derive your test factory from EntityFrameworkWebApplicationFactory<TEntryPoint, TDbContext> to configure an isolated database for each scenario. Tests can seed, query, and execute scoped database actions through the factory while requests still run through the in-memory ASP.NET Core host.
For fast tests that do not require relational database behavior, derive from
InMemoryEntityFrameworkWebApplicationFactory<TEntryPoint, TDbContext> instead. It registers
the EF Core in-memory provider automatically and creates an isolated database for each test
scenario:
public sealed class TestApiFactory
: InMemoryEntityFrameworkWebApplicationFactory<Program, TestApiDbContext>
{
}
The EF Core in-memory provider does not enforce relational constraints or support transactions.
Use EntityFrameworkWebApplicationFactory<TEntryPoint, TDbContext> with SQLite or the same
relational provider used in production when those behaviors are relevant to the test.
var product = await factory.QueryDatabaseAsync(
(database, cancellationToken) => database.Products
.SingleAsync(item => item.Id == 42, cancellationToken));
See the repository documentation for factory setup and isolation examples.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Microsoft.EntityFrameworkCore (>= 10.0.11)
- Microsoft.EntityFrameworkCore.InMemory (>= 10.0.11)
- XBullet.EasyTesting (>= 1.0.3)
-
net8.0
- Microsoft.EntityFrameworkCore (>= 8.0.30)
- Microsoft.EntityFrameworkCore.InMemory (>= 8.0.30)
- XBullet.EasyTesting (>= 1.0.3)
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 |
|---|---|---|
| 1.0.15 | 21 | 9/29/2026 |
| 1.0.14 | 45 | 9/27/2026 |
| 1.0.13 | 48 | 9/26/2026 |
| 1.0.12 | 52 | 9/25/2026 |
| 1.0.11 | 51 | 9/24/2026 |
| 1.0.9 | 46 | 9/24/2026 |
| 1.0.8 | 91 | 9/21/2026 |
| 1.0.7 | 85 | 9/19/2026 |
| 1.0.6 | 88 | 9/18/2026 |
| 1.0.5 | 81 | 9/18/2026 |
| 1.0.4 | 89 | 9/15/2026 |
| 1.0.3 | 88 | 9/15/2026 |
| 0.2.0 | 84 | 9/15/2026 |
| 0.1.0 | 84 | 9/14/2026 |