public TestValidationRuleChecker() { var validationCatalog = new ValidationCatalog(); _validations = validationCatalog; validationCatalog.AddValidations(ValidationFinder.ScanAssembly(GetType().Assembly)); }
internal static IEnumerable <RequiredValidation> Select(IValidationCatalog catalog, TargetSet targetSet) { var allPossible = catalog.Validations().SelectMany(v => CandidateSelector.AllPossible(v, targetSet)).ToList(); return(ValidationRuleChecker.Filter(allPossible)); }
public Validator(IValidationCatalog validations) { _validations = validations; }