public CaptchaValidator(ICaptchaService captcha) { _captcha = captcha; RuleFor(x => x.Code).NotEmpty().WithMessage("Captcha is required") .Must((x, code) => _captcha.Ishuman(x.Id, x.Code)).WithMessage("Invalid Captcha"); }