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

Fixing name.

This commit is contained in:
jrmccannon 2025-03-24 15:32:30 -05:00
parent f69dc1f7cf
commit 6c6ecfefdf
No known key found for this signature in database
GPG Key ID: CF03F3DB01CE96A6
3 changed files with 5 additions and 5 deletions

View File

@ -25,7 +25,7 @@ public class InviteUsersValidator(
{
public async Task<ValidationResult<InviteUserOrganizationValidationRequest>> ValidateAsync(InviteUserOrganizationValidationRequest request)
{
var organizationValidationResult = InvitingUserOrganizationValidator.Validate(request.InviteOrganization);
var organizationValidationResult = InviteUserOrganizationValidator.Validate(request.InviteOrganization);
if (organizationValidationResult is Invalid<InviteOrganization> organizationValidation)
{

View File

@ -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<InviteOrganization> Validate(InviteOrganization inviteOrganization)
{

View File

@ -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<Valid<InviteOrganization>>(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<Invalid<InviteOrganization>>(result);
Assert.Equal(OrganizationNoPaymentMethodFoundError.Code, (result as Invalid<InviteOrganization>)!.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<Invalid<InviteOrganization>>(result);
Assert.Equal(OrganizationNoSubscriptionFoundError.Code, (result as Invalid<InviteOrganization>)!.ErrorMessageString);