From e4aa740a28e7c96d84e4daf742b2e0523c4cce05 Mon Sep 17 00:00:00 2001 From: jrmccannon Date: Fri, 7 Mar 2025 12:46:59 -0600 Subject: [PATCH] Fixed some compilation errors. --- ...viteUserOrganizationValidationRequestHelpers.cs | 4 ++-- .../InviteOrganizationUserCommandTests.cs | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/test/Core.Test/AdminConsole/OrganizationFeatures/OrganizationUsers/InviteUsers/Helpers/InviteUserOrganizationValidationRequestHelpers.cs b/test/Core.Test/AdminConsole/OrganizationFeatures/OrganizationUsers/InviteUsers/Helpers/InviteUserOrganizationValidationRequestHelpers.cs index c78dbbb416..9d259ef1d9 100644 --- a/test/Core.Test/AdminConsole/OrganizationFeatures/OrganizationUsers/InviteUsers/Helpers/InviteUserOrganizationValidationRequestHelpers.cs +++ b/test/Core.Test/AdminConsole/OrganizationFeatures/OrganizationUsers/InviteUsers/Helpers/InviteUserOrganizationValidationRequestHelpers.cs @@ -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, diff --git a/test/Core.Test/AdminConsole/OrganizationFeatures/OrganizationUsers/InviteUsers/InviteOrganizationUserCommandTests.cs b/test/Core.Test/AdminConsole/OrganizationFeatures/OrganizationUsers/InviteUsers/InviteOrganizationUserCommandTests.cs index c422ed286e..9b6e6ba08a 100644 --- a/test/Core.Test/AdminConsole/OrganizationFeatures/OrganizationUsers/InviteUsers/InviteOrganizationUserCommandTests.cs +++ b/test/Core.Test/AdminConsole/OrganizationFeatures/OrganizationUsers/InviteUsers/InviteOrganizationUserCommandTests.cs @@ -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>(result); await sutProvider.GetDependency()