diff --git a/test/Api.Test/Controllers/AccountsControllerTests.cs b/test/Api.Test/Controllers/AccountsControllerTests.cs index ff75fd51e7..975f03e136 100644 --- a/test/Api.Test/Controllers/AccountsControllerTests.cs +++ b/test/Api.Test/Controllers/AccountsControllerTests.cs @@ -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; public AccountsControllerTests() { @@ -41,6 +43,8 @@ namespace Bit.Api.Test.Controllers _organizationUserRepository = Substitute.For(); _paymentService = Substitute.For(); _globalSettings = new GlobalSettings(); + _sendRepository = Substitute.For(); + _sendService = Substitute.For(); _sut = new AccountsController( _globalSettings, _cipherRepository, @@ -50,7 +54,9 @@ namespace Bit.Api.Test.Controllers _paymentService, _ssoUserRepository, _userRepository, - _userService + _userService, + _sendRepository, + _sendService ); } diff --git a/test/Core.Test/Services/UserServiceTests.cs b/test/Core.Test/Services/UserServiceTests.cs index 8180559442..b463e0d59a 100644 --- a/test/Core.Test/Services/UserServiceTests.cs +++ b/test/Core.Test/Services/UserServiceTests.cs @@ -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(); + _sendRepository = Substitute.For(); _sut = new UserService( _userRepository, @@ -101,7 +103,8 @@ namespace Bit.Core.Test.Services _fido2, _currentContext, _globalSettings, - _organizationService + _organizationService, + _sendRepository ); }