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 b4fc66feb6
3353 changed files with 88254 additions and 1590657 deletions

View File

@@ -3,6 +3,8 @@ using StellaOps.Infrastructure.Postgres.Testing;
using Testcontainers.PostgreSql;
using Xunit;
using StellaOps.TestKit;
namespace StellaOps.Infrastructure.Postgres.Tests;
/// <summary>
@@ -30,7 +32,8 @@ public sealed class PostgresFixtureTests : IAsyncLifetime
}
}
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public async Task Initialize_CreatesSchema()
{
// Arrange
@@ -45,7 +48,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 +78,8 @@ public sealed class PostgresFixtureTests : IAsyncLifetime
count.Should().Be(0L);
}
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public async Task Dispose_DropsSchema()
{
// Arrange

View File

@@ -28,6 +28,7 @@
<ItemGroup>
<ProjectReference Include="..\..\StellaOps.Infrastructure.Postgres\StellaOps.Infrastructure.Postgres.csproj" />
<ProjectReference Include="../../StellaOps.TestKit/StellaOps.TestKit.csproj" />
</ItemGroup>
</Project>