示例#1
0
        public ValidationResult Validate(T candidate)
        {
            var result = new ValidationResult();

            if (candidate == null)
            {
                result.AddReason(MessageInvalidationReason.Error(InvalidMessageKey));
            }

            return(result);
        }