From b96892b14e4d4abb73cd83cd6eaaeedff977ed6f Mon Sep 17 00:00:00 2001 From: tidusjar Date: Mon, 3 Jul 2023 20:43:00 +0100 Subject: [PATCH] Fixed tests --- src/Ombi.Schedule.Tests/PlexUserImporterTests.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Ombi.Schedule.Tests/PlexUserImporterTests.cs b/src/Ombi.Schedule.Tests/PlexUserImporterTests.cs index 62d058d19a..39443ea559 100644 --- a/src/Ombi.Schedule.Tests/PlexUserImporterTests.cs +++ b/src/Ombi.Schedule.Tests/PlexUserImporterTests.cs @@ -6,6 +6,7 @@ using Ombi.Api.Plex.Models; using Ombi.Api.Plex.Models.Friends; using Ombi.Core.Authentication; +using Ombi.Core.Engine; using Ombi.Core.Settings; using Ombi.Core.Settings.Models.External; using Ombi.Helpers; @@ -365,7 +366,7 @@ public async Task Import_Cleanup_Missing_Plex_Users() await _subject.Execute(null); - _mocker.Verify(x => x.DeleteAsync(It.Is(x => x.ProviderUserId == "PLEX_ID" && x.Email == "dupe" && x.UserName == "plex")), Times.Once); + _mocker.Verify(x => x.DeleteUser(It.Is(x => x.ProviderUserId == "PLEX_ID" && x.Email == "dupe" && x.UserName == "plex")), Times.Once); } [Test] @@ -401,7 +402,7 @@ public async Task Import_Cleanup_Missing_Plex_Admin() await _subject.Execute(null); - _mocker.Verify(x => x.DeleteAsync(It.Is(x => x.ProviderUserId == "PLEX_ID" && x.Email == "dupe" && x.UserName == "plex")), Times.Once); + _mocker.Verify(x => x.DeleteUser(It.Is(x => x.ProviderUserId == "PLEX_ID" && x.Email == "dupe" && x.UserName == "plex")), Times.Once); } } }