From 1577465024eca57ea5076a371736ac820918bb0e Mon Sep 17 00:00:00 2001 From: Jonas Seiler Date: Thu, 3 Apr 2025 10:47:34 +0200 Subject: [PATCH] Add NetTopologySuite to Tests --- tests/StreetWebApplicationFactory.cs | 2 +- tests/tests.csproj | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/StreetWebApplicationFactory.cs b/tests/StreetWebApplicationFactory.cs index 2a0cb0f..03d34e8 100644 --- a/tests/StreetWebApplicationFactory.cs +++ b/tests/StreetWebApplicationFactory.cs @@ -19,7 +19,7 @@ public class StreetWebApplicationFactory : WebApplicationFactory(options => options.UseNpgsql(dbTestContainer.GetConnectionString())); + services.AddDbContext(options => options.UseNpgsql(dbTestContainer.GetConnectionString(), o => o.UseNetTopologySuite())); // Ensure the database is created before running the tests using var scope = services.BuildServiceProvider().CreateScope(); diff --git a/tests/tests.csproj b/tests/tests.csproj index 4f40b1d..44b8367 100644 --- a/tests/tests.csproj +++ b/tests/tests.csproj @@ -10,11 +10,15 @@ + + + +