From c771657a68e4aeb52d6bd700e01f1cf4cdc3675c Mon Sep 17 00:00:00 2001 From: Ted Wollman <25165500+TheTedder@users.noreply.github.com> Date: Sun, 15 Oct 2023 16:03:34 -0400 Subject: [PATCH] Remove unused template db connection. --- LeaderboardBackend.Test/Fixtures/PostgresDatabaseFixture.cs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/LeaderboardBackend.Test/Fixtures/PostgresDatabaseFixture.cs b/LeaderboardBackend.Test/Fixtures/PostgresDatabaseFixture.cs index 2c628520..57e7a640 100644 --- a/LeaderboardBackend.Test/Fixtures/PostgresDatabaseFixture.cs +++ b/LeaderboardBackend.Test/Fixtures/PostgresDatabaseFixture.cs @@ -1,6 +1,4 @@ -using System; using System.Threading.Tasks; -using LeaderboardBackend.Models.Entities; using Npgsql; using NUnit.Framework; using Testcontainers.PostgreSql; @@ -15,7 +13,6 @@ public class PostgresDatabaseFixture public static string? Database { get; private set; } public static string? Username { get; private set; } public static string? Password { get; private set; } - public static NpgsqlDataSource? DataSource { get; private set; } public static int Port { get; private set; } [OneTimeSetUp] @@ -31,9 +28,6 @@ public static async Task OneTimeSetup() Password = connStrBuilder.Password!; Database = connStrBuilder.Database!; Port = connStrBuilder.Port; - NpgsqlDataSourceBuilder dataSourceBuilder = new(connStrBuilder.ConnectionString); - dataSourceBuilder.UseNodaTime().MapEnum(); - DataSource = dataSourceBuilder.Build(); } [OneTimeTearDown]