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
TEntryPointThe application entry point type.
TOptionsFixtureThe 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
appAppManagerFixture<TEntryPoint>The application manager fixture.
testIdTmpScopeIdFixtureThe unique test scope identifier.
optsTOptionsFixtureThe database name fixture options.