1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-05 05:00:19 -05:00

Fixed some compilation errors.

This commit is contained in:
jrmccannon 2025-03-07 12:46:59 -06:00
parent 42c76c0e64
commit e4aa740a28
No known key found for this signature in database
GPG Key ID: CF03F3DB01CE96A6
2 changed files with 9 additions and 9 deletions

View File

@ -6,14 +6,14 @@ namespace Bit.Core.Test.AdminConsole.OrganizationFeatures.OrganizationUsers.Invi
public static class InviteUserOrganizationValidationRequestHelpers
{
public static InviteUserOrganizationValidationRequest GetInviteValidationRequestMock(InviteScimOrganizationUserRequest request,
public static InviteUserOrganizationValidationRequest GetInviteValidationRequestMock(OrganizationUserSingleEmailInvite request,
InviteOrganization inviteOrganization) =>
new()
{
Invites =
[
OrganizationUserInviteDto.Create(request.Email,
OrganizationUserInvite.Create(request, request.ExternalId), inviteOrganization.OrganizationId)
OrganizationUserInvite.Create(request), inviteOrganization.OrganizationId)
],
InviteOrganization = inviteOrganization,
PerformedBy = Guid.Empty,

View File

@ -40,7 +40,7 @@ public class InviteOrganizationUserCommandTests
var organizationDto = new InviteOrganization(organization);
var request = new InviteScimOrganizationUserRequest(user.Email,
var request = new OrganizationUserSingleEmailInvite(user.Email,
true,
organizationDto,
timeProvider.GetUtcNow(),
@ -88,7 +88,7 @@ public class InviteOrganizationUserCommandTests
var organizationDto = new InviteOrganization(organization);
var request = new InviteScimOrganizationUserRequest(orgUser.Email,
var request = new OrganizationUserSingleEmailInvite(orgUser.Email,
true,
organizationDto,
timeProvider.GetUtcNow(),
@ -141,7 +141,7 @@ public class InviteOrganizationUserCommandTests
var organizationDto = new InviteOrganization(organization);
var request = new InviteScimOrganizationUserRequest(user.Email,
var request = new OrganizationUserSingleEmailInvite(user.Email,
true,
organizationDto,
timeProvider.GetUtcNow(),
@ -196,7 +196,7 @@ public class InviteOrganizationUserCommandTests
var organizationDto = new InviteOrganization(organization);
var request = new InviteScimOrganizationUserRequest(user.Email,
var request = new OrganizationUserSingleEmailInvite(user.Email,
true,
organizationDto,
timeProvider.GetUtcNow(),
@ -254,7 +254,7 @@ public class InviteOrganizationUserCommandTests
var organizationDto = new InviteOrganization(organization);
var request = new InviteScimOrganizationUserRequest(user.Email,
var request = new OrganizationUserSingleEmailInvite(user.Email,
true,
organizationDto,
timeProvider.GetUtcNow(),
@ -317,7 +317,7 @@ public class InviteOrganizationUserCommandTests
var organizationDto = new InviteOrganization(organization);
var request = new InviteScimOrganizationUserRequest(user.Email,
var request = new OrganizationUserSingleEmailInvite(user.Email,
true,
organizationDto,
timeProvider.GetUtcNow(),
@ -351,7 +351,7 @@ public class InviteOrganizationUserCommandTests
// Act
var result = await sutProvider.Sut.InviteScimOrganizationUserAsync(request);
// Assert
// Assert;
Assert.IsType<Success<ScimInviteOrganizationUsersResponse>>(result);
await sutProvider.GetDependency<IUpdateSecretsManagerSubscriptionCommand>()