mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
PerformSearchFixture refactoring
This commit is contained in:
@@ -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 @@ namespace NzbDrone.Core.Test.Framework
|
|||||||
|
|
||||||
|
|
||||||
[SetUp]
|
[SetUp]
|
||||||
public virtual void SetupBase()
|
public virtual void CoreTestSetup()
|
||||||
{
|
{
|
||||||
LiveKernel = new StandardKernel();
|
LiveKernel = new StandardKernel();
|
||||||
}
|
}
|
||||||
@@ -59,5 +60,14 @@ namespace NzbDrone.Core.Test.Framework
|
|||||||
Db = MockLib.GetEmptyDatabase();
|
Db = MockLib.GetEmptyDatabase();
|
||||||
Mocker.SetConstant(Db);
|
Mocker.SetConstant(Db);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
protected ProgressNotification MockNotification
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return new ProgressNotification("Mock notification");
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user