fix BaseApiTests
This commit is contained in:
parent
0785140ca5
commit
e1c9c17ecb
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user