1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-10-30 07:22:35 +01:00

Added emptry constructor to Search

This commit is contained in:
Mark McDowall 2013-01-13 10:29:53 -08:00
parent 5e7c0951b7
commit 6b7e4d10e5
6 changed files with 18 additions and 2 deletions

View File

@ -10,7 +10,7 @@ using NzbDrone.Test.Common.AutoMoq;
namespace NzbDrone.Core.Test.JobTests namespace NzbDrone.Core.Test.JobTests
{ {
[TestFixture] [TestFixture]
public class SearchJobTest:CoreTest public class EpisodeSearchJobTest:CoreTest
{ {
[TestCase(0)] [TestCase(0)]
[TestCase(-1)] [TestCase(-1)]

View File

@ -205,7 +205,7 @@
<Compile Include="ProviderTests\GrowlProviderTest.cs" /> <Compile Include="ProviderTests\GrowlProviderTest.cs" />
<Compile Include="ProviderTests\DiskProviderTests\ExtractArchiveFixture.cs" /> <Compile Include="ProviderTests\DiskProviderTests\ExtractArchiveFixture.cs" />
<Compile Include="ProviderTests\PostDownloadProviderTests\GetFolderNameWithStatusFixture.cs" /> <Compile Include="ProviderTests\PostDownloadProviderTests\GetFolderNameWithStatusFixture.cs" />
<Compile Include="JobTests\SearchJobTest.cs" /> <Compile Include="JobTests\EpisodeSearchJobTest.cs" />
<Compile Include="ProviderTests\PostDownloadProviderTests\ProcessDownloadFixture.cs" /> <Compile Include="ProviderTests\PostDownloadProviderTests\ProcessDownloadFixture.cs" />
<Compile Include="ProviderTests\JobProviderTests\TestJobs.cs" /> <Compile Include="ProviderTests\JobProviderTests\TestJobs.cs" />
<Compile Include="JobTests\AppUpdateJobFixture.cs" /> <Compile Include="JobTests\AppUpdateJobFixture.cs" />

View File

@ -24,6 +24,10 @@ namespace NzbDrone.Core.Providers.Search
{ {
} }
public DailyEpisodeSearch()
{
}
public override List<EpisodeParseResult> PerformSearch(Series series, dynamic options, ProgressNotification notification) public override List<EpisodeParseResult> PerformSearch(Series series, dynamic options, ProgressNotification notification)
{ {
if (options.Episode == null) if (options.Episode == null)

View File

@ -24,6 +24,10 @@ namespace NzbDrone.Core.Providers.Search
{ {
} }
public EpisodeSearch()
{
}
public override List<EpisodeParseResult> PerformSearch(Series series, dynamic options, ProgressNotification notification) public override List<EpisodeParseResult> PerformSearch(Series series, dynamic options, ProgressNotification notification)
{ {
//Todo: Daily and Anime or separate them out? //Todo: Daily and Anime or separate them out?

View File

@ -24,6 +24,10 @@ namespace NzbDrone.Core.Providers.Search
{ {
} }
public PartialSeasonSearch()
{
}
public override List<EpisodeParseResult> PerformSearch(Series series, dynamic options, ProgressNotification notification) public override List<EpisodeParseResult> PerformSearch(Series series, dynamic options, ProgressNotification notification)
{ {
if (options.SeasonNumber == null || options.SeasonNumber < 0) if (options.SeasonNumber == null || options.SeasonNumber < 0)

View File

@ -37,6 +37,10 @@ namespace NzbDrone.Core.Providers.Search
_searchHistoryProvider = searchHistoryProvider; _searchHistoryProvider = searchHistoryProvider;
} }
protected SearchBase()
{
}
public abstract List<EpisodeParseResult> PerformSearch(Series series, dynamic options, ProgressNotification notification); public abstract List<EpisodeParseResult> PerformSearch(Series series, dynamic options, ProgressNotification notification);
public abstract SearchHistoryItem CheckReport(Series series, dynamic options, EpisodeParseResult episodeParseResult, public abstract SearchHistoryItem CheckReport(Series series, dynamic options, EpisodeParseResult episodeParseResult,
SearchHistoryItem item); SearchHistoryItem item);