Table of Contents

Class TmpDatabaseNameFixture<TEntryPoint, TOptionsFixture>

Namespace
FEFF.TestFixtures.AspNetCore
Assembly
FEFF.TestFixtures.AspNetCore.dll

A fixture that appends a unique test identifier to connection string database names, ensuring each test runs against an isolated database.

public class TmpDatabaseNameFixture<TEntryPoint, TOptionsFixture> where TEntryPoint : class where TOptionsFixture : ITmpDatabaseNameFixtureOptions

Type Parameters

TEntryPoint

The application entry point type.

TOptionsFixture

The options type implementing ITmpDatabaseNameFixtureOptions.

Inheritance
TmpDatabaseNameFixture<TEntryPoint, TOptionsFixture>
Inherited Members

Constructors

TmpDatabaseNameFixture(AppManagerFixture<TEntryPoint>, TmpScopeIdFixture, TOptionsFixture)

Creates a new TmpDatabaseNameFixture<TEntryPoint, TOptionsFixture> and configures the application to use a unique database name for the test.

public TmpDatabaseNameFixture(AppManagerFixture<TEntryPoint> app, TmpScopeIdFixture testId, TOptionsFixture opts)

Parameters

app AppManagerFixture<TEntryPoint>

The application manager fixture.

testId TmpScopeIdFixture

The unique test scope identifier.

opts TOptionsFixture

The database name fixture options.