1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-30 15:42:48 -05:00

Resolve error when deleting an account connected to a provider (#1580)

This commit is contained in:
Oscar Hinton
2021-09-15 20:34:06 +02:00
committed by GitHub
parent 00332e72e4
commit c22e48c1b4
11 changed files with 264 additions and 9 deletions

View File

@ -45,7 +45,7 @@ namespace Bit.Core.Test.Services
private readonly CurrentContext _currentContext;
private readonly GlobalSettings _globalSettings;
private readonly IOrganizationService _organizationService;
private readonly ISendRepository _sendRepository;
private readonly IProviderUserRepository _providerUserRepository;
public UserServiceTests()
{
@ -75,7 +75,7 @@ namespace Bit.Core.Test.Services
_currentContext = new CurrentContext(null);
_globalSettings = new GlobalSettings();
_organizationService = Substitute.For<IOrganizationService>();
_sendRepository = Substitute.For<ISendRepository>();
_providerUserRepository = Substitute.For<IProviderUserRepository>();
_sut = new UserService(
_userRepository,
@ -104,7 +104,7 @@ namespace Bit.Core.Test.Services
_currentContext,
_globalSettings,
_organizationService,
_sendRepository
_providerUserRepository
);
}