1
0
mirror of https://github.com/bitwarden/server.git synced 2025-02-13 01:21:29 +01:00

FIx tests

This commit is contained in:
Bernd Schoolmann 2025-01-01 16:57:47 +01:00
parent 0f5df19867
commit 4f6474c441
No known key found for this signature in database

View File

@ -46,6 +46,7 @@ public class AccountsControllerTests : IDisposable
private readonly IPolicyService _policyService; private readonly IPolicyService _policyService;
private readonly ISetInitialMasterPasswordCommand _setInitialMasterPasswordCommand; private readonly ISetInitialMasterPasswordCommand _setInitialMasterPasswordCommand;
private readonly IRotateUserKeyCommand _rotateUserKeyCommand; private readonly IRotateUserKeyCommand _rotateUserKeyCommand;
private readonly IRotateUserAccountKeysCommand _rotateUserAccountKeysCommand;
private readonly ITdeOffboardingPasswordCommand _tdeOffboardingPasswordCommand; private readonly ITdeOffboardingPasswordCommand _tdeOffboardingPasswordCommand;
private readonly IFeatureService _featureService; private readonly IFeatureService _featureService;
private readonly ISubscriberService _subscriberService; private readonly ISubscriberService _subscriberService;
@ -75,6 +76,7 @@ public class AccountsControllerTests : IDisposable
_policyService = Substitute.For<IPolicyService>(); _policyService = Substitute.For<IPolicyService>();
_setInitialMasterPasswordCommand = Substitute.For<ISetInitialMasterPasswordCommand>(); _setInitialMasterPasswordCommand = Substitute.For<ISetInitialMasterPasswordCommand>();
_rotateUserKeyCommand = Substitute.For<IRotateUserKeyCommand>(); _rotateUserKeyCommand = Substitute.For<IRotateUserKeyCommand>();
_rotateUserAccountKeysCommand = Substitute.For<IRotateUserAccountKeysCommand>();
_tdeOffboardingPasswordCommand = Substitute.For<ITdeOffboardingPasswordCommand>(); _tdeOffboardingPasswordCommand = Substitute.For<ITdeOffboardingPasswordCommand>();
_featureService = Substitute.For<IFeatureService>(); _featureService = Substitute.For<IFeatureService>();
_subscriberService = Substitute.For<ISubscriberService>(); _subscriberService = Substitute.For<ISubscriberService>();
@ -103,6 +105,7 @@ public class AccountsControllerTests : IDisposable
_setInitialMasterPasswordCommand, _setInitialMasterPasswordCommand,
_tdeOffboardingPasswordCommand, _tdeOffboardingPasswordCommand,
_rotateUserKeyCommand, _rotateUserKeyCommand,
_rotateUserAccountKeysCommand,
_featureService, _featureService,
_subscriberService, _subscriberService,
_referenceEventService, _referenceEventService,