public ITypedReport <TModel> ValidateFeedXml <TModel>(ITypedXmlValidatorDataProvider <string, TModel> provider) { var report = new XmlReport <TModel>(provider); RequiredProperties <TModel>() .ForEach(field => { var attribute = FieldAttribute <ValidationColumnAttribute>(field); var context = new XmlValidationContext(field, attribute, provider, report) as TContext; ExecutePipe(attribute.ValidatePipeline)(context); }); return(report); }
public XmlReport(ITypedXmlValidatorDataProvider <string, TModel> provider) { _provider = provider; }