mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 12:02:35 +02:00
fixup FilterFiles mocks in various unit tests
This commit is contained in:
parent
4f22d135d6
commit
e18e074ee9
@ -37,7 +37,7 @@ protected void GivenCompletedItem()
|
||||
.Returns(1000000);
|
||||
|
||||
Mocker.GetMock<IDiskScanService>().Setup(c => c.FilterFiles(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, e) => s.ToList());
|
||||
}
|
||||
|
||||
protected void GivenChangedItem()
|
||||
|
@ -52,7 +52,7 @@ public void Setup()
|
||||
.Returns("myhash");
|
||||
|
||||
Mocker.GetMock<IDiskScanService>().Setup(c => c.FilterFiles(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, e) => s.ToList());
|
||||
}
|
||||
|
||||
protected void GivenFailedDownload()
|
||||
|
@ -43,7 +43,7 @@ public void Setup()
|
||||
.Returns(() => new FileStream(GetTempFilePath(), FileMode.Create));
|
||||
|
||||
Mocker.GetMock<IDiskScanService>().Setup(c => c.FilterFiles(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, e) => s.ToList());
|
||||
}
|
||||
|
||||
protected void GivenFailedDownload()
|
||||
|
@ -37,7 +37,7 @@ public void Setup()
|
||||
.Returns(_videoFiles);
|
||||
|
||||
Mocker.GetMock<IDiskScanService>().Setup(c => c.FilterFiles(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, e) => s.ToList());
|
||||
|
||||
Mocker.GetMock<IDiskProvider>().Setup(c => c.GetDirectories(It.IsAny<string>()))
|
||||
.Returns(_subFolders);
|
||||
|
Loading…
Reference in New Issue
Block a user