From ce62a12c626cdd3324ccff65a39184e312dcc5d1 Mon Sep 17 00:00:00 2001 From: Qstick Date: Fri, 11 Aug 2023 22:32:54 -0500 Subject: [PATCH] Sync DeleteBadMediaCoversFixture with upstream (cherry picked from commit df6c89ea234526a61df65ccf344ac52d34b3c97a) Closes #3990 --- .../Housekeepers}/DeleteBadMediaCovers.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) rename src/NzbDrone.Core.Test/{HealthCheck/Checks => Housekeeping/Housekeepers}/DeleteBadMediaCovers.cs (92%) 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);