Rig.TUnit.Databases 0.1.0-beta.2

This is a prerelease version of Rig.TUnit.Databases.
dotnet add package Rig.TUnit.Databases --version 0.1.0-beta.2
                    
NuGet\Install-Package Rig.TUnit.Databases -Version 0.1.0-beta.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Rig.TUnit.Databases" Version="0.1.0-beta.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Rig.TUnit.Databases" Version="0.1.0-beta.2" />
                    
Directory.Packages.props
<PackageReference Include="Rig.TUnit.Databases" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Rig.TUnit.Databases --version 0.1.0-beta.2
                    
#r "nuget: Rig.TUnit.Databases, 0.1.0-beta.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Rig.TUnit.Databases@0.1.0-beta.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Rig.TUnit.Databases&version=0.1.0-beta.2&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Rig.TUnit.Databases&version=0.1.0-beta.2&prerelease
                    
Install as a Cake Tool

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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