Refactor code structure and optimize performance across multiple modules

This commit is contained in:
StellaOps Bot
2025-12-26 20:03:22 +02:00
parent c786faae84
commit f10d83c444
1385 changed files with 69732 additions and 10280 deletions

View File

@@ -30,7 +30,8 @@ public sealed class PostgresFixtureTests : IAsyncLifetime
}
}
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public async Task Initialize_CreatesSchema()
{
// Arrange
@@ -45,7 +46,8 @@ public sealed class PostgresFixtureTests : IAsyncLifetime
options.SchemaName.Should().StartWith("test_initialize_createsschema_");
}
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public async Task TruncateAllTables_ClearsTables()
{
// Arrange
@@ -74,7 +76,8 @@ public sealed class PostgresFixtureTests : IAsyncLifetime
count.Should().Be(0L);
}
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public async Task Dispose_DropsSchema()
{
// Arrange
@@ -94,6 +97,7 @@ public sealed class PostgresFixtureTests : IAsyncLifetime
await using var cmd = new Npgsql.NpgsqlCommand(
"SELECT EXISTS(SELECT 1 FROM information_schema.schemata WHERE schema_name = @name)",
conn);
using StellaOps.TestKit;
cmd.Parameters.AddWithValue("name", schemaName);
var exists = await cmd.ExecuteScalarAsync();
exists.Should().Be(false);