From 6c6ecfefdffe8e58c0bf48af826c654e20a916de Mon Sep 17 00:00:00 2001 From: jrmccannon Date: Mon, 24 Mar 2025 15:32:30 -0500 Subject: [PATCH] Fixing name. --- .../Validation/InviteOrganizationUserValidator.cs | 2 +- ...ationValidator.cs => InviteUserOrganizationValidator.cs} | 2 +- .../Validation/InviteUserOrganizationValidationTests.cs | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) rename src/Core/AdminConsole/OrganizationFeatures/OrganizationUsers/InviteUsers/Validation/Organization/{InvitingUserOrganizationValidator.cs => InviteUserOrganizationValidator.cs} (94%) diff --git a/src/Core/AdminConsole/OrganizationFeatures/OrganizationUsers/InviteUsers/Validation/InviteOrganizationUserValidator.cs b/src/Core/AdminConsole/OrganizationFeatures/OrganizationUsers/InviteUsers/Validation/InviteOrganizationUserValidator.cs index c36c992c39..c2919253ca 100644 --- a/src/Core/AdminConsole/OrganizationFeatures/OrganizationUsers/InviteUsers/Validation/InviteOrganizationUserValidator.cs +++ b/src/Core/AdminConsole/OrganizationFeatures/OrganizationUsers/InviteUsers/Validation/InviteOrganizationUserValidator.cs @@ -25,7 +25,7 @@ public class InviteUsersValidator( { public async Task> ValidateAsync(InviteUserOrganizationValidationRequest request) { - var organizationValidationResult = InvitingUserOrganizationValidator.Validate(request.InviteOrganization); + var organizationValidationResult = InviteUserOrganizationValidator.Validate(request.InviteOrganization); if (organizationValidationResult is Invalid organizationValidation) { diff --git a/src/Core/AdminConsole/OrganizationFeatures/OrganizationUsers/InviteUsers/Validation/Organization/InvitingUserOrganizationValidator.cs b/src/Core/AdminConsole/OrganizationFeatures/OrganizationUsers/InviteUsers/Validation/Organization/InviteUserOrganizationValidator.cs similarity index 94% rename from src/Core/AdminConsole/OrganizationFeatures/OrganizationUsers/InviteUsers/Validation/Organization/InvitingUserOrganizationValidator.cs rename to src/Core/AdminConsole/OrganizationFeatures/OrganizationUsers/InviteUsers/Validation/Organization/InviteUserOrganizationValidator.cs index fb3363b786..c169c97b7b 100644 --- a/src/Core/AdminConsole/OrganizationFeatures/OrganizationUsers/InviteUsers/Validation/Organization/InvitingUserOrganizationValidator.cs +++ b/src/Core/AdminConsole/OrganizationFeatures/OrganizationUsers/InviteUsers/Validation/Organization/InviteUserOrganizationValidator.cs @@ -3,7 +3,7 @@ using Bit.Core.AdminConsole.Shared.Validation; namespace Bit.Core.AdminConsole.OrganizationFeatures.OrganizationUsers.InviteUsers.Validation.Organization; -public static class InvitingUserOrganizationValidator +public static class InviteUserOrganizationValidator { public static ValidationResult Validate(InviteOrganization inviteOrganization) { diff --git a/test/Core.Test/AdminConsole/OrganizationFeatures/OrganizationUsers/InviteUsers/Validation/InviteUserOrganizationValidationTests.cs b/test/Core.Test/AdminConsole/OrganizationFeatures/OrganizationUsers/InviteUsers/Validation/InviteUserOrganizationValidationTests.cs index 85fd62fbb4..11b6e2c331 100644 --- a/test/Core.Test/AdminConsole/OrganizationFeatures/OrganizationUsers/InviteUsers/Validation/InviteUserOrganizationValidationTests.cs +++ b/test/Core.Test/AdminConsole/OrganizationFeatures/OrganizationUsers/InviteUsers/Validation/InviteUserOrganizationValidationTests.cs @@ -14,7 +14,7 @@ public class InviteUserOrganizationValidationTests [BitAutoData] public void Validate_WhenOrganizationIsFreeTier_ShouldReturnValidResponse(Organization organization) { - var result = InvitingUserOrganizationValidator.Validate(new InviteOrganization(organization, new FreePlan())); + var result = InviteUserOrganizationValidator.Validate(new InviteOrganization(organization, new FreePlan())); Assert.IsType>(result); } @@ -26,7 +26,7 @@ public class InviteUserOrganizationValidationTests { organization.GatewayCustomerId = string.Empty; - var result = InvitingUserOrganizationValidator.Validate(new InviteOrganization(organization, new FreePlan())); + var result = InviteUserOrganizationValidator.Validate(new InviteOrganization(organization, new FreePlan())); Assert.IsType>(result); Assert.Equal(OrganizationNoPaymentMethodFoundError.Code, (result as Invalid)!.ErrorMessageString); @@ -39,7 +39,7 @@ public class InviteUserOrganizationValidationTests { organization.GatewaySubscriptionId = string.Empty; - var result = InvitingUserOrganizationValidator.Validate(new InviteOrganization(organization, new FreePlan())); + var result = InviteUserOrganizationValidator.Validate(new InviteOrganization(organization, new FreePlan())); Assert.IsType>(result); Assert.Equal(OrganizationNoSubscriptionFoundError.Code, (result as Invalid)!.ErrorMessageString);