Skip to content

Commit

Permalink
refactor: Rename validation rule
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDave1999 committed Mar 23, 2024
1 parent 3916e5f commit 3685f33
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Shared/ValidationRules/DocumentValidator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

public static class DocumentValidator
{
public static IRuleBuilderOptions<T, string> MustBeValidDocument<T>(
public static IRuleBuilderOptions<T, string> MustBeValidIdentityDocument<T>(
this IRuleBuilder<T, string> ruleBuilder,
IIdentityDocumentValidator documentValidator)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ private class UserValidator : AbstractValidator<User>
public UserValidator(IIdentityDocumentValidator documentValidator)
{
RuleFor(user => user.Document)
.MustBeValidDocument(documentValidator);
.MustBeValidIdentityDocument(documentValidator);
}
}
}

0 comments on commit 3685f33

Please sign in to comment.