This commit is contained in:
Paul Schneider
2021-06-06 22:38:04 +01:00
parent 136cb32301
commit bb1c9f7bf4
2 changed files with 8 additions and 5 deletions

View File

@ -230,7 +230,7 @@ namespace yavscTests
WebHostBuilder = new WebHostBuilder();
webhostengnine = WebHostBuilder
.UseEnvironment("Development")
.UseServer("Yavsc")
.UseServer("yavscTests")
.UseStartup<Yavsc.Startup>()
.Build();
WebApp = webhostengnine.Start();
@ -240,9 +240,9 @@ namespace yavscTests
public void Dispose()
{
WebApp.Dispose();
Logger.LogInformation("Disposing");
if (DbCreated) DropTestDb();
if (WebApp!=null) WebApp.Dispose();
if (Logger!=null) Logger.LogInformation("Disposing");
}
public bool DbCreated { get {