From 6b36364b999d2d022137602309cc3dfbbad5f427 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=A4felfinger?= Date: Mon, 17 Oct 2022 23:59:22 +0200 Subject: [PATCH] adds check for the right methods of session api --- PiwigoDotnet/Piwigo.Client.Tests/SessionApiTests.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PiwigoDotnet/Piwigo.Client.Tests/SessionApiTests.cs b/PiwigoDotnet/Piwigo.Client.Tests/SessionApiTests.cs index af34ecf..7a07825 100644 --- a/PiwigoDotnet/Piwigo.Client.Tests/SessionApiTests.cs +++ b/PiwigoDotnet/Piwigo.Client.Tests/SessionApiTests.cs @@ -18,6 +18,7 @@ public class SessionApiTests : ApiTestsBase public async Task Login_should_set_cookies_and_session() { await LoginAsync(); + CorrectMethodShouldGetCalled("pwg.session.login"); } [Test] @@ -39,6 +40,7 @@ public class SessionApiTests : ApiTestsBase status.Should().NotBeNull(); status.Username.Should().Be("admin"); + CorrectMethodShouldGetCalled("pwg.session.getStatus"); } [Test] @@ -50,6 +52,7 @@ public class SessionApiTests : ApiTestsBase await _sessionApi.LogoutAsync(); Context.IsLoggedIn.Should().BeFalse(); + CorrectMethodShouldGetCalled("pwg.session.logout"); } private async Task LoginAsync()