You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
558 B
30 lines
558 B
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>();
|
|
}
|
|
}
|
|
}
|