Cleaning up

This commit is contained in:
Zoe Roux 2021-04-23 21:26:04 +02:00
parent 1bcd587401
commit a4b4622fa5
2 changed files with 3 additions and 13 deletions

View File

@ -42,19 +42,6 @@ namespace Kyoo.Controllers
/// <inheritdoc/>
public Type RepositoryType => typeof(T);
/// <inheritdoc/>
public virtual void Dispose()
{
Database.Dispose();
GC.SuppressFinalize(this);
}
/// <inheritdoc/>
public virtual ValueTask DisposeAsync()
{
return Database.DisposeAsync();
}
/// <summary>
/// Get a resource from it's ID and make the <see cref="Database"/> instance track it.
/// </summary>

View File

@ -5,6 +5,9 @@ namespace Kyoo.Tests
{
public class SetupTests
{
// TODO test libraries & repositories via a on-memory SQLite database.
// TODO Requires: Kyoo should be database agonistic and database implementations should be available via a plugin.
// [Fact]
// public void Get_Test()
// {