Skip to content

Commit

Permalink
Remove unused template db connection.
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTedder committed Oct 15, 2023
1 parent 6124808 commit c771657
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions LeaderboardBackend.Test/Fixtures/PostgresDatabaseFixture.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Threading.Tasks;
using LeaderboardBackend.Models.Entities;
using Npgsql;
using NUnit.Framework;
using Testcontainers.PostgreSql;
Expand All @@ -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]
Expand All @@ -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<UserRole>();
DataSource = dataSourceBuilder.Build();
}

[OneTimeTearDown]
Expand Down

0 comments on commit c771657

Please sign in to comment.