mirror of
https://github.com/bitwarden/server.git
synced 2025-07-08 03:15:07 -05:00
Renamed method to improve clarity and consistency.
Replaced `ValidateManagedUserDomainAsync` with `ValidateClaimedUserDomainAsync`.
This commit is contained in:
@ -120,7 +120,7 @@ public class AccountsControllerTests : IDisposable
|
||||
ConfigureUserServiceToReturnValidPrincipalFor(user);
|
||||
ConfigureUserServiceToAcceptPasswordFor(user);
|
||||
const string newEmail = "example@user.com";
|
||||
_userService.ValidateManagedUserDomainAsync(user, newEmail).Returns(IdentityResult.Success);
|
||||
_userService.ValidateClaimedUserDomainAsync(user, newEmail).Returns(IdentityResult.Success);
|
||||
|
||||
// Act
|
||||
await _sut.PostEmailToken(new EmailTokenRequestModel { NewEmail = newEmail });
|
||||
@ -139,7 +139,7 @@ public class AccountsControllerTests : IDisposable
|
||||
|
||||
const string newEmail = "example@user.com";
|
||||
|
||||
_userService.ValidateManagedUserDomainAsync(user, newEmail)
|
||||
_userService.ValidateClaimedUserDomainAsync(user, newEmail)
|
||||
.Returns(IdentityResult.Failed(new IdentityError
|
||||
{
|
||||
Code = "TestFailure",
|
||||
|
Reference in New Issue
Block a user