mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-06-20 14:00:35 -04:00
37 lines
769 B
C#
37 lines
769 B
C#
using System;
|
|
using System.Diagnostics.CodeAnalysis;
|
|
using System.Threading.Tasks;
|
|
using Kyoo.Models;
|
|
using Xunit;
|
|
using Xunit.Abstractions;
|
|
|
|
namespace Kyoo.Tests.Database
|
|
{
|
|
public class GlobalTests : IDisposable, IAsyncDisposable
|
|
{
|
|
private readonly RepositoryActivator _repositories;
|
|
|
|
public GlobalTests(ITestOutputHelper output)
|
|
{
|
|
_repositories = new RepositoryActivator(output);
|
|
}
|
|
|
|
[Fact]
|
|
[SuppressMessage("ReSharper", "EqualExpressionComparison")]
|
|
public void SampleTest()
|
|
{
|
|
Assert.False(ReferenceEquals(TestSample.Get<Show>(), TestSample.Get<Show>()));
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
_repositories.Dispose();
|
|
GC.SuppressFinalize(this);
|
|
}
|
|
|
|
public ValueTask DisposeAsync()
|
|
{
|
|
return _repositories.DisposeAsync();
|
|
}
|
|
}
|
|
} |