Example #1
0
        public TestValidationRuleChecker()
        {
            var validationCatalog = new ValidationCatalog();

            _validations = validationCatalog;
            validationCatalog.AddValidations(ValidationFinder.ScanAssembly(GetType().Assembly));
        }
Example #2
0
        internal static IEnumerable <RequiredValidation> Select(IValidationCatalog catalog, TargetSet targetSet)
        {
            var allPossible = catalog.Validations().SelectMany(v => CandidateSelector.AllPossible(v, targetSet)).ToList();

            return(ValidationRuleChecker.Filter(allPossible));
        }
Example #3
0
 public Validator(IValidationCatalog validations)
 {
     _validations = validations;
 }