fix BaseApiTests

This commit is contained in:
diana-vahomskaya 2021-07-20 13:35:19 +03:00
parent 0785140ca5
commit e1c9c17ecb

View File

@ -39,6 +39,13 @@ namespace ASC.Web.Api.Tests
Scope = host.Services.CreateScope();
}
[OneTimeTearDown]
public void DropDb()
{
var context = Scope.ServiceProvider.GetService<DbContextManager<TenantDbContext>>();
context.Value.Database.EnsureDeleted();
}
private void Migrate(IServiceProvider serviceProvider, string testAssembly = null)
{