Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,16 @@ namespace StrongTypes.Api.IntegrationTests.Infrastructure;
/// </summary>
public sealed class TestWebApplicationFactory : WebApplicationFactory<Program>, IAsyncLifetime
{
private readonly MsSqlContainer _sqlContainer = new MsSqlBuilder().Build();
private readonly PostgreSqlContainer _pgContainer = new PostgreSqlBuilder().Build();
private const string DockerGroupLabel = "com.docker.compose.project";
private const string DockerGroupName = "StrongTypes";

private readonly MsSqlContainer _sqlContainer = new MsSqlBuilder()
.WithLabel(DockerGroupLabel, DockerGroupName)
.Build();

private readonly PostgreSqlContainer _pgContainer = new PostgreSqlBuilder()
.WithLabel(DockerGroupLabel, DockerGroupName)
.Build();

async ValueTask IAsyncLifetime.InitializeAsync()
{
Expand Down
Loading