Search/AdvisoryAI and DAL conversion to EF finishes up. Preparation for microservices consolidation.
This commit is contained in:
@@ -64,6 +64,14 @@ public abstract class PostgresIntegrationFixture : IAsyncLifetime
|
||||
/// </summary>
|
||||
protected virtual string? GetResourcePrefix() => null;
|
||||
|
||||
/// <summary>
|
||||
/// Creates the underlying <see cref="PostgresFixture"/> instance.
|
||||
/// Override to use a canonical schema name (e.g. "policy") instead of a
|
||||
/// randomly generated test schema when migration SQL hardcodes a schema prefix.
|
||||
/// </summary>
|
||||
protected virtual PostgresFixture CreateFixtureInstance(string connectionString, string moduleName, ILogger logger)
|
||||
=> PostgresFixtureFactory.Create(connectionString, moduleName, logger);
|
||||
|
||||
/// <summary>
|
||||
/// Initializes the PostgreSQL container and runs migrations.
|
||||
/// </summary>
|
||||
@@ -99,7 +107,7 @@ public abstract class PostgresIntegrationFixture : IAsyncLifetime
|
||||
}
|
||||
|
||||
var moduleName = GetModuleName();
|
||||
_fixture = PostgresFixtureFactory.Create(ConnectionString, moduleName, Logger);
|
||||
_fixture = CreateFixtureInstance(ConnectionString, moduleName, Logger);
|
||||
await _fixture.InitializeAsync();
|
||||
|
||||
var migrationAssembly = GetMigrationAssembly();
|
||||
|
||||
Reference in New Issue
Block a user