Пример #1
0
 public void ValidateProfile(Profile profile)
 {
     ProfileValidator pv = new ProfileValidator(profile);
     printer.Title("Checking the profile for use in resource validation");
     Report report = pv.Validate();
     printer.PrintSummary(report);
 }
Пример #2
0
        public void ValidateEntries(Profile profile, IEnumerable<Feed.Entry> entries, ReportMode mode)
        {
            ResourceValidator validator = new ResourceValidator(profile);

            foreach (Feed.Entry entry in entries)
            {
                printer.Title(string.Format("Validating resource '{0}'", entry.Title));
                Report report = validator.Validate(entry.ResourceNode);
                printer.Print(report, mode);
                Console.Write(".");
            }
        }
 public ResourceValidator(Profile profile)
 {
     this.Profile = profile;
 }
Пример #4
0
 public ProfileValidator(Profile profile)
 {
     report.Clear();
     this.profile = profile;
 }