mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-31 04:04:21 -04:00
Fixing database removal
This commit is contained in:
parent
7bd78bfaac
commit
b8d4a2ed33
@ -10,7 +10,7 @@ using Xunit;
|
||||
|
||||
namespace Kyoo.Tests
|
||||
{
|
||||
public abstract class RepositoryTests<T>
|
||||
public abstract class RepositoryTests<T> : IDisposable, IAsyncDisposable
|
||||
where T : class, IResource, new()
|
||||
{
|
||||
protected readonly RepositoryActivator Repositories;
|
||||
@ -21,7 +21,17 @@ namespace Kyoo.Tests
|
||||
Repositories = repositories;
|
||||
_repository = Repositories.LibraryManager.GetRepository<T>();
|
||||
}
|
||||
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
Repositories.Dispose();
|
||||
}
|
||||
|
||||
public ValueTask DisposeAsync()
|
||||
{
|
||||
return Repositories.DisposeAsync();
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task FillTest()
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user