Changed the way the test-data is generated

This commit is contained in:
Jonathan Bourdon
2024-07-18 13:19:40 -04:00
parent a8b7860fd8
commit ed8f41cf96
5 changed files with 203 additions and 125 deletions

View File

@@ -6,7 +6,6 @@ using Hutopy.Infrastructure.Data;
using Hutopy.Infrastructure.Identity;
using Hutopy.Web;
using Hutopy.Web.Contents;
using Hutopy.Web.Contents.Data;
using Hutopy.Web.Messages;
using Microsoft.AspNetCore.HttpOverrides;
using Microsoft.EntityFrameworkCore;
@@ -103,7 +102,7 @@ app.UseAuthorization();
// Initialize and seed the db.
await app.InitialiseApplicationDatabaseAsync();
await app.InitialiseContentDatabaseAsync();
await app.SeedDatabaseWithTestDataOnlyIfNoDataIsPresentAsync();
// Configure the HTTP request pipeline.
if (!app.Environment.IsDevelopment())