public MissingProperties Validate() { var missing = new MissingProperties(); foreach (var validatable in destinationProperty2Resolver.Values.OfType <IValidatable>()) { missing = missing.Merge(validatable.Validate()); } return(missing); }
public MissingProperties Validate() { var missing = new MissingProperties(); foreach (var validatable in destinationType2BindableConfig.Values.OfType <IValidatable>()) { var theseMissing = validatable.Validate(); missing = missing.Merge(theseMissing); } Logger.Create(GetType()).Info("There are '{0}' missing properties after validation.{1}{2}", missing.Count(), Environment.NewLine, missing.GetFormattedMissingProperties()); return(missing); }
public MissingProperties Validate() { var resolverValidatable = resolverContainers.OfType <IValidateResolvers>().ToArray(); if (resolverValidatable.Length > 0) { foreach (var destinationProperty in destinationProperties) { var property = destinationProperty; if (resolverValidatable.Any(it => it.HasResolverFromOtherSource(destinationType, property))) { continue; } missingProperties.Add(destinationProperty); } } foreach (var validatable in resolverContainers.OfType <IValidatable>()) { missingProperties = missingProperties.Merge(validatable.Validate()); } return(missingProperties); }
public MissingProperties Validate() { var missing = new MissingProperties(); foreach (var validatable in destinationProperty2Resolver.Values.OfType<IValidatable>()) { missing=missing.Merge(validatable.Validate()); } return missing; }
public MissingProperties Validate() { var missing = new MissingProperties(); foreach (var validatable in destinationType2BindableConfig.Values.OfType<IValidatable>()) { var theseMissing = validatable.Validate(); missing = missing.Merge(theseMissing); } Logger.Create(GetType()).Info("There are '{0}' missing properties after validation.{1}{2}", missing.Count(), Environment.NewLine, missing.GetFormattedMissingProperties()); return missing; }