mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 07:36:14 -05:00
[send.key] Update send.key when account encryption key is rotated (#1417)
* Rotate send.key with account encryption key
* Update tests
* Improve and refactor style, fix typo
* Use null instead of empty lists
* Revert "Use null instead of empty lists"
This reverts commit 775a52ca56
.
* Fix style (use AddRange instead of reassignment)
This commit is contained in:
@ -30,6 +30,8 @@ namespace Bit.Api.Test.Controllers
|
||||
private readonly ISsoUserRepository _ssoUserRepository;
|
||||
private readonly IUserRepository _userRepository;
|
||||
private readonly IUserService _userService;
|
||||
private readonly ISendRepository _sendRepository;
|
||||
private readonly ISendService _sendService;
|
||||
private readonly IProviderUserRepository _providerUserRepository;
|
||||
|
||||
public AccountsControllerTests()
|
||||
@ -43,6 +45,8 @@ namespace Bit.Api.Test.Controllers
|
||||
_providerUserRepository = Substitute.For<IProviderUserRepository>();
|
||||
_paymentService = Substitute.For<IPaymentService>();
|
||||
_globalSettings = new GlobalSettings();
|
||||
_sendRepository = Substitute.For<ISendRepository>();
|
||||
_sendService = Substitute.For<ISendService>();
|
||||
_sut = new AccountsController(
|
||||
_globalSettings,
|
||||
_cipherRepository,
|
||||
@ -53,7 +57,9 @@ namespace Bit.Api.Test.Controllers
|
||||
_paymentService,
|
||||
_ssoUserRepository,
|
||||
_userRepository,
|
||||
_userService
|
||||
_userService,
|
||||
_sendRepository,
|
||||
_sendService
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user