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); }
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; }
public ProfileValidator(Profile profile) { report.Clear(); this.profile = profile; }