1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-30 07:36:14 -05:00
This commit is contained in:
Brandon
2025-05-14 15:14:27 -04:00
parent 04383a82a1
commit 2cac1c82d0
2 changed files with 3 additions and 3 deletions

View File

@ -49,7 +49,7 @@ public class ImportOrganizationUserCommandTests
invites.Add(new OrganizationUserInviteCommandModel(u.Email + "@test.com", u.ExternalId));
}
var inviteCommandModel = new InviteOrganizationUsersRequest(invites.ToArray(), new InviteOrganization(org, null), Guid.Empty, DateTimeOffset.UtcNow);
var inviteCommandModel = new InviteOrganizationUsersRequest(invites.ToArray(), new InviteOrganization(org, null), org.Id, DateTimeOffset.UtcNow);
newUsers.Add(new ImportedOrganizationUser
{
@ -74,7 +74,7 @@ public class ImportOrganizationUserCommandTests
await sutProvider.GetDependency<IInviteOrganizationUsersCommand>().Received(1)
.InviteImportedOrganizationUsersAsync(Arg.Is<InviteOrganizationUsersRequest>(
// These are the invites that should get populated from the CommandResult response above
request => request.Invites.Count() == 0
request => request.Invites.Count() == expectedNewUsersCount
), org.Id);
await sutProvider.GetDependency<IOrganizationUserRepository>().DidNotReceiveWithAnyArgs()
.UpsertAsync(default);