private BrokenRule MapRule <TDest>(BrokenRule rule, OneToManyObjectToObjectMap <TDest> mappings) { return (new BrokenRule( mappings.FindSourcePropertyOnDestination(rule.Source, rule.PropertyName) .IfNullOrEmpty(rule.PropertyName), rule.Message, rule.Severity) { Source = rule.Source, ValidatorInfo = rule.ValidatorInfo }); }
public static ValidationProviderResult Fail(BrokenRule brokenRule) { return(Fail(new[] { brokenRule })); }