mirror of
https://github.com/lidarr/Lidarr
synced 2024-12-29 02:55:38 +00:00
29 lines
558 B
C#
29 lines
558 B
C#
namespace NzbDrone.Core.Test.Framework
|
|
{
|
|
public abstract class SqlCeTest<TSubject> : SqlCeTest 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>();
|
|
}
|
|
}
|
|
}
|