2013-01-19 18:19:29 +00:00
|
|
|
|
namespace NzbDrone.Core.Test.Framework
|
|
|
|
|
{
|
2013-02-02 20:54:03 +00:00
|
|
|
|
public abstract class SqlCeTest<TSubject> : SqlCeTest where TSubject : class
|
2013-01-19 18:19:29 +00:00
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
private TSubject _subject;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected TSubject Subject
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
if (_subject == null)
|
|
|
|
|
{
|
|
|
|
|
_subject = Mocker.Resolve<TSubject>();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return _subject;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected void InitiateSubject()
|
|
|
|
|
{
|
|
|
|
|
_subject = Mocker.Resolve<TSubject>();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|