From b4474f817f301b0e8ef461a7950d565594645303 Mon Sep 17 00:00:00 2001 From: Rui Tome Date: Fri, 10 Jan 2025 12:31:31 +0000 Subject: [PATCH] Refine test for RevokeNonCompliantOrganizationUserCommand to assert single user revocation --- .../RevokeNonCompliantOrganizationUserCommandTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/Core.Test/AdminConsole/OrganizationFeatures/OrganizationUsers/RevokeNonCompliantOrganizationUserCommandTests.cs b/test/Core.Test/AdminConsole/OrganizationFeatures/OrganizationUsers/RevokeNonCompliantOrganizationUserCommandTests.cs index 3653cd27d7df..0ccad9e5c7a4 100644 --- a/test/Core.Test/AdminConsole/OrganizationFeatures/OrganizationUsers/RevokeNonCompliantOrganizationUserCommandTests.cs +++ b/test/Core.Test/AdminConsole/OrganizationFeatures/OrganizationUsers/RevokeNonCompliantOrganizationUserCommandTests.cs @@ -162,7 +162,7 @@ public async Task RevokeNonCompliantOrganizationUsersAsync_GivenValidPopulatedRe await sutProvider.GetDependency() .Received(1) - .RevokeManyByIdAsync(Arg.Any>()); + .RevokeManyByIdAsync(Arg.Is>(x => x.Count() == 1 && x.Contains(userToRevoke.Id))); Assert.True(result.Success);