Skip to content

Commit

Permalink
Move OrganisationSeedData back to Data project
Browse files Browse the repository at this point in the history
  • Loading branch information
Top-Cat committed Nov 11, 2024
1 parent bf42de1 commit e678779
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
using FamilyHubs.ServiceDirectory.Data.Entities;
using FamilyHubs.ServiceDirectory.Data.Repository;
using FamilyHubs.ServiceDirectory.Shared.Enums;

namespace FamilyHubs.ServiceDirectory.Api.FunctionalTests;
namespace FamilyHubs.ServiceDirectory.Data.Repository;

#pragma warning disable S1075
public class OrganisationSeedData
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ private void InitialiseDatabase()
TestDbContext.Database.EnsureDeleted();
TestDbContext.Database.EnsureCreated();
TestDbContext.Database.ExecuteSqlRaw($"UPDATE geometry_columns SET srid = {GeoPoint.WGS84} WHERE f_table_name = 'locations';");
var seedData = new OrganisationSeedData(TestDbContext);
seedData.SeedTaxonomies();
seedData.SeedOrganisations();
}

private ServiceProvider CreateNewServiceProvider()
Expand Down

0 comments on commit e678779

Please sign in to comment.