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 @@ + + + +