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:
parent
42c76c0e64
commit
e4aa740a28
@ -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,
|
||||
|
@ -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>()
|
||||
|
Loading…
x
Reference in New Issue
Block a user