mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 07:36:14 -05:00
Fix Most Test Warnings (#4612)
* Add Collections Tests * Update CollectionRepository Implementation * Test Adding And Deleting Through Replace * Format * Fix Most Test Warnings * Format
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
using Bit.Api.IntegrationTest.Factories;
|
||||
using System.Diagnostics;
|
||||
using Bit.Api.IntegrationTest.Factories;
|
||||
using Bit.Core.AdminConsole.Entities;
|
||||
using Bit.Core.Billing.Enums;
|
||||
using Bit.Core.Entities;
|
||||
@ -38,6 +39,8 @@ public static class OrganizationTestHelpers
|
||||
PaymentMethodType = paymentMethod
|
||||
});
|
||||
|
||||
Debug.Assert(signUpResult.organizationUser is not null);
|
||||
|
||||
return new Tuple<Organization, OrganizationUser>(signUpResult.organization, signUpResult.organizationUser);
|
||||
}
|
||||
|
||||
@ -57,6 +60,7 @@ public static class OrganizationTestHelpers
|
||||
var organizationUserRepository = factory.GetService<IOrganizationUserRepository>();
|
||||
|
||||
var user = await userRepository.GetByEmailAsync(userEmail);
|
||||
Debug.Assert(user is not null);
|
||||
|
||||
var orgUser = new OrganizationUser
|
||||
{
|
||||
|
Reference in New Issue
Block a user