1
0
mirror of https://github.com/bitwarden/server.git synced 2025-02-27 03:41:30 +01:00

formatting

This commit is contained in:
jrmccannon 2024-11-12 09:47:49 -06:00
parent f2f2a62670
commit f009db0f05
No known key found for this signature in database
GPG Key ID: CF03F3DB01CE96A6

View File

@ -281,7 +281,6 @@ public class TwoFactorAuthenticationPolicyValidatorTests
Id = Guid.NewGuid(),
Status = OrganizationUserStatusType.Confirmed,
Type = OrganizationUserType.User,
// Needs to be different from what is passed in as the savingUserId to Sut.SaveAsync
Email = "user3@test.com",
Name = "TEST",
UserId = Guid.NewGuid(),
@ -299,9 +298,8 @@ public class TwoFactorAuthenticationPolicyValidatorTests
(orgUserDetailUserWithout2Fa, false),
});
var action = () => sutProvider.Sut.OnSaveSideEffectsAsync(policyUpdate, policy);
var exception = await Assert.ThrowsAsync<BadRequestException>(() => sutProvider.Sut.OnSaveSideEffectsAsync(policyUpdate, policy));
var exception = await Assert.ThrowsAsync<BadRequestException>(action);
Assert.Equal(TwoFactorAuthenticationPolicyValidator.NonCompliantMembersWillLoseAccess, exception.Message);
}
}