|
|
@ -37,6 +37,8 @@ namespace NzbDrone.Core.Test.JobTests
|
|
|
|
.Setup(p => p.Scan(series))
|
|
|
|
.Setup(p => p.Scan(series))
|
|
|
|
.Returns(new List<EpisodeFile>());
|
|
|
|
.Returns(new List<EpisodeFile>());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Mocker.GetMock<AutoIgnoreJob>()
|
|
|
|
|
|
|
|
.Setup(s => s.Start(It.IsAny<ProgressNotification>(), 0, 0));
|
|
|
|
|
|
|
|
|
|
|
|
//Act
|
|
|
|
//Act
|
|
|
|
Mocker.Resolve<DiskScanJob>().Start(new ProgressNotification("Test"), series.SeriesId, 0);
|
|
|
|
Mocker.Resolve<DiskScanJob>().Start(new ProgressNotification("Test"), series.SeriesId, 0);
|
|
|
@ -69,6 +71,9 @@ namespace NzbDrone.Core.Test.JobTests
|
|
|
|
.Setup(s => s.Scan(series[1]))
|
|
|
|
.Setup(s => s.Scan(series[1]))
|
|
|
|
.Returns(new List<EpisodeFile>());
|
|
|
|
.Returns(new List<EpisodeFile>());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Mocker.GetMock<AutoIgnoreJob>()
|
|
|
|
|
|
|
|
.Setup(s => s.Start(It.IsAny<ProgressNotification>(), 0, 0));
|
|
|
|
|
|
|
|
|
|
|
|
Mocker.Resolve<DiskScanJob>().Start(new ProgressNotification("Test"), 0, 0);
|
|
|
|
Mocker.Resolve<DiskScanJob>().Start(new ProgressNotification("Test"), 0, 0);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -97,6 +102,9 @@ namespace NzbDrone.Core.Test.JobTests
|
|
|
|
.Setup(s => s.Scan(series[1]))
|
|
|
|
.Setup(s => s.Scan(series[1]))
|
|
|
|
.Throws(new InvalidOperationException("Bad Job"));
|
|
|
|
.Throws(new InvalidOperationException("Bad Job"));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Mocker.GetMock<AutoIgnoreJob>()
|
|
|
|
|
|
|
|
.Setup(s => s.Start(It.IsAny<ProgressNotification>(), 0, 0));
|
|
|
|
|
|
|
|
|
|
|
|
Mocker.Resolve<DiskScanJob>().Start(new ProgressNotification("Test"), 0, 0);
|
|
|
|
Mocker.Resolve<DiskScanJob>().Start(new ProgressNotification("Test"), 0, 0);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -126,6 +134,9 @@ namespace NzbDrone.Core.Test.JobTests
|
|
|
|
.Setup(s => s.Scan(series[1]))
|
|
|
|
.Setup(s => s.Scan(series[1]))
|
|
|
|
.Returns(new List<EpisodeFile>());
|
|
|
|
.Returns(new List<EpisodeFile>());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Mocker.GetMock<AutoIgnoreJob>()
|
|
|
|
|
|
|
|
.Setup(s => s.Start(It.IsAny<ProgressNotification>(), 0, 0));
|
|
|
|
|
|
|
|
|
|
|
|
Mocker.Resolve<DiskScanJob>().Start(new ProgressNotification("Test"), 0, 0);
|
|
|
|
Mocker.Resolve<DiskScanJob>().Start(new ProgressNotification("Test"), 0, 0);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|