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