From cc4695025479d39ab11a9581cbc6c602b09a9658 Mon Sep 17 00:00:00 2001 From: Alexandre Brandizzi Date: Fri, 25 Sep 2026 19:10:46 -0300 Subject: [PATCH] test(auth): format the password change request --- SeaHavenIndustries.Tests/SessionRevocationTests.cs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/SeaHavenIndustries.Tests/SessionRevocationTests.cs b/SeaHavenIndustries.Tests/SessionRevocationTests.cs index a2b5d85..1cd9bd7 100644 --- a/SeaHavenIndustries.Tests/SessionRevocationTests.cs +++ b/SeaHavenIndustries.Tests/SessionRevocationTests.cs @@ -39,12 +39,13 @@ public sealed class SessionRevocationTests var other = await host.SignInAsync("sam@example.com"); await AssertAcceptedAsync(host, other); - using (var changed = await host.SendAsync(HttpMethod.Post, "api/Authentication/ChangePassword", before, new - { - currentpassword = SessionTestHost.Password, - newpassword = NewPassword, - confirmpassword = NewPassword - })) + var change = new + { + currentpassword = SessionTestHost.Password, + newpassword = NewPassword, + confirmpassword = NewPassword + }; + using (var changed = await host.SendAsync(HttpMethod.Post, "api/Authentication/ChangePassword", before, change)) Assert.Equal(HttpStatusCode.OK, changed.StatusCode); await AssertRefusedAsync(host, before);