Fixed broken tests

pull/6/head
Mark McDowall 12 years ago
parent 4176158fdf
commit 1b2fe6e842

@ -50,6 +50,9 @@ namespace NzbDrone.Core.Test.JobTests
Mocker.GetMock<BannerDownloadJob>() Mocker.GetMock<BannerDownloadJob>()
.Setup(j => j.Start(notification, It.IsAny<int>(), 0)); .Setup(j => j.Start(notification, It.IsAny<int>(), 0));
Mocker.GetMock<XemUpdateJob>()
.Setup(j => j.Start(notification, It.IsAny<int>(), 0));
Mocker.GetMock<UpdateInfoJob>() Mocker.GetMock<UpdateInfoJob>()
.Setup(j => j.Start(notification, series[0].SeriesId, 0)) .Setup(j => j.Start(notification, series[0].SeriesId, 0))
.Callback(() => series[0].LastInfoSync = DateTime.Now); .Callback(() => series[0].LastInfoSync = DateTime.Now);
@ -123,6 +126,9 @@ namespace NzbDrone.Core.Test.JobTests
Mocker.GetMock<MediaFileProvider>() Mocker.GetMock<MediaFileProvider>()
.Setup(s => s.GetSeriesFiles(It.IsAny<int>())).Returns(new List<EpisodeFile>()); .Setup(s => s.GetSeriesFiles(It.IsAny<int>())).Returns(new List<EpisodeFile>());
Mocker.GetMock<XemUpdateJob>()
.Setup(j => j.Start(notification, series[0].SeriesId, 0));
//Act //Act
Mocker.Resolve<ImportNewSeriesJob>().Start(notification, 0, 0); Mocker.Resolve<ImportNewSeriesJob>().Start(notification, 0, 0);

Loading…
Cancel
Save