diff --git a/src/NzbDrone.Core.Test/HealthCheck/Checks/DeleteBadMediaCovers.cs b/src/NzbDrone.Core.Test/Housekeeping/Housekeepers/DeleteBadMediaCovers.cs similarity index 92% rename from src/NzbDrone.Core.Test/HealthCheck/Checks/DeleteBadMediaCovers.cs rename to src/NzbDrone.Core.Test/Housekeeping/Housekeepers/DeleteBadMediaCovers.cs index eb495bb70..21cd2cf9b 100644 --- a/src/NzbDrone.Core.Test/HealthCheck/Checks/DeleteBadMediaCovers.cs +++ b/src/NzbDrone.Core.Test/Housekeeping/Housekeepers/DeleteBadMediaCovers.cs @@ -14,31 +14,31 @@ using NzbDrone.Core.Music; using NzbDrone.Core.Test.Framework; using NzbDrone.Test.Common; -namespace NzbDrone.Core.Test.HealthCheck.Checks +namespace NzbDrone.Core.Test.Housekeeping.Housekeepers { [TestFixture] public class DeleteBadMediaCoversFixture : CoreTest { private List _metadata; - private List _artist; + private Dictionary _artist; [SetUp] public void Setup() { - _artist = Builder.CreateListOfSize(1) - .All() - .With(c => c.Path = "C:\\Music\\".AsOsAgnostic()) - .Build().ToList(); + _artist = new Dictionary + { + { 1, "C:\\Music\\".AsOsAgnostic() } + }; _metadata = Builder.CreateListOfSize(1) .Build().ToList(); Mocker.GetMock() .Setup(c => c.AllArtistPaths()) - .Returns(_artist.ToDictionary(x => x.Id, x => x.Path)); + .Returns(_artist); Mocker.GetMock() - .Setup(c => c.GetFilesByArtist(_artist.First().Id)) + .Setup(c => c.GetFilesByArtist(_artist.First().Key)) .Returns(_metadata); Mocker.GetMock().SetupGet(c => c.CleanupMetadataImages).Returns(true);