Ejemplo n.º 1
0
        public ValidationResults RunAllRules()
        {
            var results = new ValidationResults();

            foreach (var rule in _rules)
            {
                IValidationResult result;
                try
                {
                    result = rule.Run(_mappingSet);
                }
                catch (Exception e)
                {
                    result = new ExceptionValidationRule(rule, e);
                }

                results.AddResult(result);
            }
            return results;
        }
Ejemplo n.º 2
0
        public ValidationResults RunAllRules()
        {
            var results = new ValidationResults();

            foreach (var rule in _rules)
            {
                IValidationResult result;
                try
                {
                    result = rule.Run(_mappingSet);
                }
                catch (Exception e)
                {
                    result = new ExceptionValidationRule(rule, e);
                }

                results.AddResult(result);
            }
            return(results);
        }