mirror of
https://github.com/bitwarden/server.git
synced 2024-11-23 12:25:16 +01:00
[EC-1015] Fixed OrganizationService InviteUser unit tests to not depend on random Org seat number (#2607)
This commit is contained in:
parent
9ea520e038
commit
28e6275063
@ -311,6 +311,7 @@ public class OrganizationServiceTests
|
||||
public async Task InviteUser_WithCustomType_WhenUseCustomPermissionsIsTrue_Passes(Organization organization, OrganizationUserInvite invite,
|
||||
OrganizationUser invitor, SutProvider<OrganizationService> sutProvider)
|
||||
{
|
||||
organization.Seats = 10;
|
||||
organization.UseCustomPermissions = true;
|
||||
|
||||
invite.Permissions = null;
|
||||
@ -336,6 +337,7 @@ public class OrganizationServiceTests
|
||||
public async Task InviteUser_WithNonCustomType_WhenUseCustomPermissionsIsFalse_Passes(OrganizationUserType inviteUserType, Organization organization, OrganizationUserInvite invite,
|
||||
OrganizationUser invitor, SutProvider<OrganizationService> sutProvider)
|
||||
{
|
||||
organization.Seats = 10;
|
||||
organization.UseCustomPermissions = false;
|
||||
|
||||
invite.Type = inviteUserType;
|
||||
|
Loading…
Reference in New Issue
Block a user