コード例 #1
0
        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);
        }
コード例 #2
0
 public XmlReport(ITypedXmlValidatorDataProvider <string, TModel> provider)
 {
     _provider = provider;
 }