Rig.TUnit.Databases
0.1.0-beta.2
dotnet add package Rig.TUnit.Databases --version 0.1.0-beta.2
NuGet\Install-Package Rig.TUnit.Databases -Version 0.1.0-beta.2
<PackageReference Include="Rig.TUnit.Databases" Version="0.1.0-beta.2" />
<PackageVersion Include="Rig.TUnit.Databases" Version="0.1.0-beta.2" />
<PackageReference Include="Rig.TUnit.Databases" />
paket add Rig.TUnit.Databases --version 0.1.0-beta.2
#r "nuget: Rig.TUnit.Databases, 0.1.0-beta.2"
#:package Rig.TUnit.Databases@0.1.0-beta.2
#addin nuget:?package=Rig.TUnit.Databases&version=0.1.0-beta.2&prerelease
#tool nuget:?package=Rig.TUnit.Databases&version=0.1.0-beta.2&prerelease
Rig.TUnit.Databases
Base package for the Rig.TUnit database testing ecosystem. Defines IDbRig, DbFixtureBase, DatabaseRigBuilder<TSelf>, seeding, and provider-agnostic assertions (DatabaseAssert, MigrationAssert). Concrete providers live in Rig.TUnit.Databases.Sql.* and Rig.TUnit.Databases.NoSql.*.
Install
dotnet add package Rig.TUnit.Databases
Example
public sealed class MyRig : CompositeFixture
{
public SqlServerFixture Db { get; } = new(); // from .Sql.SqlServer provider
}
[Test]
public async Task MyHandler_WhenInserted_IsFound()
{
await using var rig = new MyRig();
await rig.InitializeAsync();
await SeedBuilder<Customer>.Create()
.Generate(5, f => f.CustomInstantiator(x => new Customer(x.UniqueIndex, x.Name.First())))
.BuildInto(rig.Db);
}
See also
Dependencies
Rig.TUnit.Core
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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
- Bogus (>= 35.6.1)
- Microsoft.Extensions.Configuration (>= 10.0.0)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.0)
- Microsoft.Extensions.Options (>= 10.0.0)
- Microsoft.Extensions.Options.DataAnnotations (>= 10.0.0)
- Rig.TUnit.Core (>= 0.1.0-beta.2)
- TUnit.Core (>= 1.34.5)
NuGet packages (4)
Showing the top 4 NuGet packages that depend on Rig.TUnit.Databases:
| Package | Downloads |
|---|---|
|
Rig.TUnit.Microservices.Outbox
TUnit fixture for the transactional outbox pattern - visibility-timeout helpers, dispatcher assertions, and dedup checks. |
|
|
Rig.TUnit.Databases.NoSql
NoSQL family base - INoSqlFixture, change-feed utilities, conflict-resolution helpers. Pull a leaf provider for a working fixture. |
|
|
Rig.TUnit.Databases.Sql
SQL family base - ISqlFixture, schema helpers, transaction-isolation utilities. Pull a leaf package (SqlServer, Postgresql, MySql, Oracle, Sqlite) for a working fixture. |
|
|
Rig.TUnit.All
Meta-package containing every Rig.TUnit.* package. DISCOURAGED — prefer per-feature or per-stack meta-packages (Rig.TUnit, Rig.TUnit.Microservices). |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0-beta.2 | 69 | 4/27/2026 |
| 0.0.0-alpha.0.14 | 73 | 4/26/2026 |