public void TestValidation() { var config = new WsiConfig() { WsiPath = @"C:\Program Files\WSI\", Saxon91Path = @"C:\Java\Saxon91\" }; var manager = new ValidatorManager(config) { Files = new List<string>() { "http://localhost/MyWebServices/Services/SimpleService.asmx?WSDL", "soap.xml" }, }; manager.ValidatorName = manager.Validators[0]; if (File.Exists(manager.ReportPath)) File.Delete(manager.ReportPath); manager.Run(); Assert.IsTrue(File.ReadAllText(manager.ReportPath).Length>100, "report not created"); }
public WsiPresenter() { this.Config = new WsiConfig() { WsiPath = Path.Combine(Environment.CurrentDirectory, "Wsi"), Saxon91Path = Path.Combine(Environment.CurrentDirectory, "Saxon91") }; this.manager = new ValidatorManager(this.Config); }