diff --git a/src/Shared/ValidationRules/DocumentValidator.cs b/src/Shared/ValidationRules/DocumentValidator.cs index be965a1b..1826e142 100644 --- a/src/Shared/ValidationRules/DocumentValidator.cs +++ b/src/Shared/ValidationRules/DocumentValidator.cs @@ -2,7 +2,7 @@ public static class DocumentValidator { - public static IRuleBuilderOptions MustBeValidDocument( + public static IRuleBuilderOptions MustBeValidIdentityDocument( this IRuleBuilder ruleBuilder, IIdentityDocumentValidator documentValidator) { diff --git a/tests/UnitTests/Shared/ValidationRules/DocumentValidatorTests.cs b/tests/UnitTests/Shared/ValidationRules/DocumentValidatorTests.cs index a187b722..13b6138c 100644 --- a/tests/UnitTests/Shared/ValidationRules/DocumentValidatorTests.cs +++ b/tests/UnitTests/Shared/ValidationRules/DocumentValidatorTests.cs @@ -41,7 +41,7 @@ private class UserValidator : AbstractValidator public UserValidator(IIdentityDocumentValidator documentValidator) { RuleFor(user => user.Document) - .MustBeValidDocument(documentValidator); + .MustBeValidIdentityDocument(documentValidator); } } }