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:
@ -45,6 +45,7 @@ namespace Bit.Core.Test.Services
|
||||
private readonly CurrentContext _currentContext;
|
||||
private readonly GlobalSettings _globalSettings;
|
||||
private readonly IOrganizationService _organizationService;
|
||||
private readonly ISendRepository _sendRepository;
|
||||
|
||||
public UserServiceTests()
|
||||
{
|
||||
@ -74,6 +75,7 @@ namespace Bit.Core.Test.Services
|
||||
_currentContext = new CurrentContext();
|
||||
_globalSettings = new GlobalSettings();
|
||||
_organizationService = Substitute.For<IOrganizationService>();
|
||||
_sendRepository = Substitute.For<ISendRepository>();
|
||||
|
||||
_sut = new UserService(
|
||||
_userRepository,
|
||||
@ -101,7 +103,8 @@ namespace Bit.Core.Test.Services
|
||||
_fido2,
|
||||
_currentContext,
|
||||
_globalSettings,
|
||||
_organizationService
|
||||
_organizationService,
|
||||
_sendRepository
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user