Fixed broken tests

This commit is contained in:
Mark McDowall 2012-10-17 21:28:54 -07:00
parent 4176158fdf
commit 1b2fe6e842
1 changed files with 6 additions and 0 deletions

View File

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