mirror of
https://github.com/lidarr/Lidarr
synced 2024-12-27 10:07:10 +00:00
PerformSearchFixture refactoring
This commit is contained in:
parent
5522466497
commit
4bd226f7c4
1 changed files with 11 additions and 1 deletions
|
@ -2,6 +2,7 @@
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
using Ninject;
|
using Ninject;
|
||||||
using NzbDrone.Common;
|
using NzbDrone.Common;
|
||||||
|
using NzbDrone.Core.Model.Notification;
|
||||||
using NzbDrone.Test.Common;
|
using NzbDrone.Test.Common;
|
||||||
using PetaPoco;
|
using PetaPoco;
|
||||||
|
|
||||||
|
@ -39,7 +40,7 @@ static CoreTest()
|
||||||
|
|
||||||
|
|
||||||
[SetUp]
|
[SetUp]
|
||||||
public virtual void SetupBase()
|
public virtual void CoreTestSetup()
|
||||||
{
|
{
|
||||||
LiveKernel = new StandardKernel();
|
LiveKernel = new StandardKernel();
|
||||||
}
|
}
|
||||||
|
@ -59,5 +60,14 @@ protected void WithRealDb()
|
||||||
Db = MockLib.GetEmptyDatabase();
|
Db = MockLib.GetEmptyDatabase();
|
||||||
Mocker.SetConstant(Db);
|
Mocker.SetConstant(Db);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
protected ProgressNotification MockNotification
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return new ProgressNotification("Mock notification");
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue