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
{
[TestFixture]
public class SearchJobTest:CoreTest
public class EpisodeSearchJobTest:CoreTest
{
[TestCase(0)]
[TestCase(-1)]

View File

@ -205,7 +205,7 @@
<Compile Include="ProviderTests\GrowlProviderTest.cs" />
<Compile Include="ProviderTests\DiskProviderTests\ExtractArchiveFixture.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\JobProviderTests\TestJobs.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)
{
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)
{
//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)
{
if (options.SeasonNumber == null || options.SeasonNumber < 0)

View File

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