Fix unit tests after filter paths change

This commit is contained in:
Mark McDowall 2022-01-19 23:54:11 -08:00
parent 041689e904
commit 86658b05ca
4 changed files with 4 additions and 4 deletions

View File

@ -37,7 +37,7 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.Blackhole
.Returns(1000000);
Mocker.GetMock<IDiskScanService>().Setup(c => c.FilterPaths(It.IsAny<string>(), It.IsAny<IEnumerable<string>>(), It.IsAny<bool>()))
.Returns<string, IEnumerable<string>>((b, s) => s.ToList());
.Returns<string, IEnumerable<string>, bool>((b, s, c) => s.ToList());
}
protected void GivenChangedItem()

View File

@ -59,7 +59,7 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.Blackhole
.Returns("myhash");
Mocker.GetMock<IDiskScanService>().Setup(c => c.FilterPaths(It.IsAny<string>(), It.IsAny<IEnumerable<string>>(), It.IsAny<bool>()))
.Returns<string, IEnumerable<string>>((b, s) => s.ToList());
.Returns<string, IEnumerable<string>, bool>((b, s, c) => s.ToList());
}
protected void GivenFailedDownload()

View File

@ -53,7 +53,7 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.Blackhole
.Returns(() => new FileStream(GetTempFilePath(), FileMode.Create));
Mocker.GetMock<IDiskScanService>().Setup(c => c.FilterPaths(It.IsAny<string>(), It.IsAny<IEnumerable<string>>(), It.IsAny<bool>()))
.Returns<string, IEnumerable<string>>((b, s) => s.ToList());
.Returns<string, IEnumerable<string>, bool>((b, s, c) => s.ToList());
}
protected void GivenFailedDownload()

View File

@ -35,7 +35,7 @@ namespace NzbDrone.Core.Test.MediaFiles
.Returns(_videoFiles);
Mocker.GetMock<IDiskScanService>().Setup(c => c.FilterPaths(It.IsAny<string>(), It.IsAny<IEnumerable<string>>(), It.IsAny<bool>()))
.Returns<string, IEnumerable<string>>((b, s) => s.ToList());
.Returns<string, IEnumerable<string>, bool>((b, s, c) => s.ToList());
Mocker.GetMock<IDiskProvider>().Setup(c => c.GetDirectories(It.IsAny<string>()))
.Returns(_subFolders);