diff --git a/NzbDrone.Core.Test/EpisodeProviderTest.cs b/NzbDrone.Core.Test/EpisodeProviderTest.cs index f7c5323eb..a054ff14a 100644 --- a/NzbDrone.Core.Test/EpisodeProviderTest.cs +++ b/NzbDrone.Core.Test/EpisodeProviderTest.cs @@ -352,8 +352,8 @@ public void new_episodes_only_calls_Insert() mocker.Resolve().RefreshEpisodeInfo(fakeSeries); //Assert - mocker.GetMock().Verify(c => c.Insert(It.IsAny()), Times.Exactly(tvdbSeries.Episodes.Count)); - mocker.GetMock().Verify(c => c.Update(It.IsAny()), Times.Never()); + mocker.GetMock().Verify(c => c.InsertMany(It.Is>(l => l.Count() == 5)), Times.Once()); + mocker.GetMock().Verify(c => c.Update(It.IsAny>()), Times.Never()); mocker.VerifyAllMocks(); } @@ -423,7 +423,7 @@ public void should_try_to_get_existing_episode_using_tvdbid_first() //Assert mocker.VerifyAllMocks(); - mocker.GetMock().Verify(c => c.Update(fakeEpisodeList[0]), Times.Once()); + mocker.GetMock().Verify(c => c.UpdateMany(fakeEpisodeList), Times.Once()); } [Test] @@ -467,7 +467,7 @@ public void should_try_to_get_existing_episode_using_tvdbid_first_then_season_ep //Assert mocker.VerifyAllMocks(); - mocker.GetMock().Verify(c => c.Update(localEpisode), Times.Once()); + mocker.GetMock().Verify(c => c.UpdateMany(new List{localEpisode}), Times.Once()); } [Test] diff --git a/NzbDrone.Web/Views/Missing/Index.cshtml b/NzbDrone.Web/Views/Missing/Index.cshtml index 4f0d4947d..c99ba1aa4 100644 --- a/NzbDrone.Web/Views/Missing/Index.cshtml +++ b/NzbDrone.Web/Views/Missing/Index.cshtml @@ -38,7 +38,7 @@ Missing .Width(80); columns.Bound(c => c.EpisodeId) .Title("Actions") - .ClientTemplate("\" onClick=\"searchForEpisode('<#= EpisodeId #>'); return false;\">Search") + .ClientTemplate("\" onClick=\"searchForEpisode(<#= EpisodeId #>); return false;\">Search") .Width("40"); }) .DetailView(detailView => detailView.ClientTemplate(