diff --git a/src/NzbDrone.Core.Test/NotificationTests/Xbmc/UpdateFixture.cs b/src/NzbDrone.Core.Test/NotificationTests/Xbmc/UpdateFixture.cs index 852a7173a..08bcf4920 100644 --- a/src/NzbDrone.Core.Test/NotificationTests/Xbmc/UpdateFixture.cs +++ b/src/NzbDrone.Core.Test/NotificationTests/Xbmc/UpdateFixture.cs @@ -16,6 +16,7 @@ namespace NzbDrone.Core.Test.NotificationTests.Xbmc private const string MB_ID = "9f4e41c3-2648-428e-b8c7-dc10465b49ac"; private XbmcSettings _settings; private List _xbmcArtist; + private List _xbmcSources; [SetUp] public void Setup() @@ -26,15 +27,26 @@ namespace NzbDrone.Core.Test.NotificationTests.Xbmc _xbmcArtist = Builder.CreateListOfSize(3) .TheFirst(1) .With(s => s.MusicbrainzArtistId = new List { MB_ID.ToString() }) + .With(s => s.SourceId = new List { 1 }) .TheNext(2) .With(s => s.MusicbrainzArtistId = new List()) .Build() .ToList(); + _xbmcSources = Builder.CreateListOfSize(1) + .All() + .With(s => s.SourceId = _xbmcArtist.First().SourceId.First()) + .Build() + .ToList(); + Mocker.GetMock() .Setup(s => s.GetArtist(_settings)) .Returns(_xbmcArtist); + Mocker.GetMock() + .Setup(s => s.GetSources(_settings)) + .Returns(_xbmcSources); + Mocker.GetMock() .Setup(s => s.GetActivePlayers(_settings)) .Returns(new List());