mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-16 11:37:58 +02:00
30 lines
556 B
C#
30 lines
556 B
C#
namespace NzbDrone.Core.Test.Framework
|
|
{
|
|
public abstract class CoreTest<TSubject> : CoreTest where TSubject : class
|
|
{
|
|
|
|
private TSubject _subject;
|
|
|
|
|
|
protected TSubject Subject
|
|
{
|
|
get
|
|
{
|
|
if (_subject == null)
|
|
{
|
|
_subject = Mocker.Resolve<TSubject>();
|
|
}
|
|
|
|
return _subject;
|
|
|
|
}
|
|
}
|
|
|
|
|
|
protected void InitiateSubject()
|
|
{
|
|
_subject = Mocker.Resolve<TSubject>();
|
|
}
|
|
}
|
|
}
|