From 28e62750635dd4b2c26ebba91459607571e1632c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rui=20Tom=C3=A9?= <108268980+r-tome@users.noreply.github.com> Date: Mon, 30 Jan 2023 10:54:44 +0000 Subject: [PATCH] [EC-1015] Fixed OrganizationService InviteUser unit tests to not depend on random Org seat number (#2607) --- test/Core.Test/Services/OrganizationServiceTests.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/Core.Test/Services/OrganizationServiceTests.cs b/test/Core.Test/Services/OrganizationServiceTests.cs index d112cdf9d..6bc60b85e 100644 --- a/test/Core.Test/Services/OrganizationServiceTests.cs +++ b/test/Core.Test/Services/OrganizationServiceTests.cs @@ -311,6 +311,7 @@ public class OrganizationServiceTests public async Task InviteUser_WithCustomType_WhenUseCustomPermissionsIsTrue_Passes(Organization organization, OrganizationUserInvite invite, OrganizationUser invitor, SutProvider 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 sutProvider) { + organization.Seats = 10; organization.UseCustomPermissions = false; invite.Type = inviteUserType;