1
0
mirror of https://github.com/bitwarden/server synced 2025-12-24 04:03:25 +00:00
This commit is contained in:
Bernd Schoolmann
2025-12-04 13:29:31 +01:00
parent 5b766e936c
commit dfa4c3a12b

View File

@@ -766,7 +766,7 @@ public class AccountsControllerTests : IDisposable
// Assert
await _setAccountKeysForUserCommand.Received(1).SetAccountKeysForUserAsync(
user.Id,
user,
model.AccountKeys);
await _userService.DidNotReceiveWithAnyArgs().SaveUserAsync(Arg.Any<User>());
Assert.NotNull(result);
@@ -796,7 +796,7 @@ public class AccountsControllerTests : IDisposable
u.PublicKey == model.PublicKey &&
u.PrivateKey == model.EncryptedPrivateKey));
await _setAccountKeysForUserCommand.DidNotReceiveWithAnyArgs()
.SetAccountKeysForUserAsync(Arg.Any<Guid>(), Arg.Any<AccountKeysRequestModel>());
.SetAccountKeysForUserAsync(Arg.Any<User>(), Arg.Any<AccountKeysRequestModel>());
Assert.NotNull(result);
Assert.Equal("keys", result.Object);
}