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);