mirror of
https://github.com/Radarr/Radarr.git
synced 2024-08-18 16:29:41 +02:00
Fix RefreshMovieServiceFixture folder service mock
This commit is contained in:
parent
c5fb5200de
commit
0c81387cfb
@ -11,6 +11,7 @@
|
|||||||
using NzbDrone.Core.Movies.Collections;
|
using NzbDrone.Core.Movies.Collections;
|
||||||
using NzbDrone.Core.Movies.Commands;
|
using NzbDrone.Core.Movies.Commands;
|
||||||
using NzbDrone.Core.Movies.Credits;
|
using NzbDrone.Core.Movies.Credits;
|
||||||
|
using NzbDrone.Core.RootFolders;
|
||||||
using NzbDrone.Core.Test.Framework;
|
using NzbDrone.Core.Test.Framework;
|
||||||
using NzbDrone.Test.Common;
|
using NzbDrone.Test.Common;
|
||||||
|
|
||||||
@ -52,6 +53,10 @@ public void Setup()
|
|||||||
Mocker.GetMock<IProvideMovieInfo>()
|
Mocker.GetMock<IProvideMovieInfo>()
|
||||||
.Setup(s => s.GetMovieInfo(It.IsAny<int>()))
|
.Setup(s => s.GetMovieInfo(It.IsAny<int>()))
|
||||||
.Callback<int>((i) => { throw new MovieNotFoundException(i); });
|
.Callback<int>((i) => { throw new MovieNotFoundException(i); });
|
||||||
|
|
||||||
|
Mocker.GetMock<IRootFolderService>()
|
||||||
|
.Setup(s => s.GetBestRootFolderPath(It.IsAny<string>()))
|
||||||
|
.Returns(string.Empty);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void GivenNewMovieInfo(MovieMetadata movie)
|
private void GivenNewMovieInfo(MovieMetadata movie)
|
||||||
|
Loading…
Reference in New Issue
Block a user