Skip to content

Commit

Permalink
Refine test for RevokeNonCompliantOrganizationUserCommand to assert s…
Browse files Browse the repository at this point in the history
…ingle user revocation
  • Loading branch information
r-tome committed Jan 10, 2025
1 parent 07caf36 commit b4474f8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public async Task RevokeNonCompliantOrganizationUsersAsync_GivenValidPopulatedRe

await sutProvider.GetDependency<IOrganizationUserRepository>()
.Received(1)
.RevokeManyByIdAsync(Arg.Any<IEnumerable<Guid>>());
.RevokeManyByIdAsync(Arg.Is<IEnumerable<Guid>>(x => x.Count() == 1 && x.Contains(userToRevoke.Id)));

Assert.True(result.Success);

Expand Down

0 comments on commit b4474f8

Please sign in to comment.