|
|
|
@ -24,9 +24,9 @@ namespace NzbDrone.Core.Test.HealthCheck.Checks
|
|
|
|
|
.Build()
|
|
|
|
|
.ToList();
|
|
|
|
|
|
|
|
|
|
Mocker.GetMock<IAuthorService>()
|
|
|
|
|
.Setup(s => s.GetAllAuthors())
|
|
|
|
|
.Returns(artist);
|
|
|
|
|
Mocker.GetMock<IArtistService>()
|
|
|
|
|
.Setup(s => s.AllArtistPaths())
|
|
|
|
|
.Returns(artist.ToDictionary(x => x.Id, x => x.Path));
|
|
|
|
|
|
|
|
|
|
Mocker.GetMock<IImportListFactory>()
|
|
|
|
|
.Setup(s => s.All())
|
|
|
|
@ -44,9 +44,9 @@ namespace NzbDrone.Core.Test.HealthCheck.Checks
|
|
|
|
|
[Test]
|
|
|
|
|
public void should_not_return_error_when_no_artist()
|
|
|
|
|
{
|
|
|
|
|
Mocker.GetMock<IAuthorService>()
|
|
|
|
|
.Setup(s => s.GetAllAuthors())
|
|
|
|
|
.Returns(new List<Author>());
|
|
|
|
|
Mocker.GetMock<IArtistService>()
|
|
|
|
|
.Setup(s => s.AllArtistPaths())
|
|
|
|
|
.Returns(new Dictionary<int, string>());
|
|
|
|
|
|
|
|
|
|
Mocker.GetMock<IImportListFactory>()
|
|
|
|
|
.Setup(s => s.All())
|
|
|
|
|