1
0
mirror of https://github.com/bitwarden/server.git synced 2024-12-22 16:57:36 +01:00

Fix broken unit tests (#816)

This commit is contained in:
Chad Scharf 2020-07-08 15:05:24 -04:00 committed by GitHub
parent d0d93a64ee
commit 5ecdc77d3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View File

@ -32,12 +32,13 @@ namespace Bit.Core.Test.Services
var appCacheService = Substitute.For<IApplicationCacheService>();
var paymentService = Substitute.For<IPaymentService>();
var policyRepo = Substitute.For<IPolicyRepository>();
var referenceEventService = Substitute.For<IReferenceEventService>();
var globalSettings = Substitute.For<GlobalSettings>();
var orgService = new OrganizationService(orgRepo, orgUserRepo, collectionRepo, userRepo,
groupRepo, dataProtector, mailService, pushNotService, pushRegService, deviceRepo,
licenseService, eventService, installationRepo, appCacheService, paymentService, policyRepo,
globalSettings);
referenceEventService, globalSettings);
var id = Guid.NewGuid();
var userId = Guid.NewGuid();
@ -90,12 +91,13 @@ namespace Bit.Core.Test.Services
var appCacheService = Substitute.For<IApplicationCacheService>();
var paymentService = Substitute.For<IPaymentService>();
var policyRepo = Substitute.For<IPolicyRepository>();
var referenceEventService = Substitute.For<IReferenceEventService>();
var globalSettings = Substitute.For<GlobalSettings>();
var orgService = new OrganizationService(orgRepo, orgUserRepo, collectionRepo, userRepo,
groupRepo, dataProtector, mailService, pushNotService, pushRegService, deviceRepo,
licenseService, eventService, installationRepo, appCacheService, paymentService, policyRepo,
globalSettings);
referenceEventService, globalSettings);
var id = Guid.NewGuid();
var userId = Guid.NewGuid();

View File

@ -38,6 +38,7 @@ namespace Bit.Core.Test.Services
private readonly IDataProtectionProvider _dataProtectionProvider;
private readonly IPaymentService _paymentService;
private readonly IPolicyRepository _policyRepository;
private readonly IReferenceEventService _referenceEventService;
private readonly CurrentContext _currentContext;
private readonly GlobalSettings _globalSettings;
@ -65,6 +66,7 @@ namespace Bit.Core.Test.Services
_dataProtectionProvider = Substitute.For<IDataProtectionProvider>();
_paymentService = Substitute.For<IPaymentService>();
_policyRepository = Substitute.For<IPolicyRepository>();
_referenceEventService = Substitute.For<IReferenceEventService>();
_currentContext = new CurrentContext();
_globalSettings = new GlobalSettings();
@ -91,6 +93,7 @@ namespace Bit.Core.Test.Services
_dataProtectionProvider,
_paymentService,
_policyRepository,
_referenceEventService,
_currentContext,
_globalSettings
);