private IReporting ReporterFactory(FileStream ReportStream) { IReporting Reporter = null; StringCollection TestAssemblies = new StringCollection(); TestAssemblies.Add(this.TestAssembly); if (this.ReportFormat == "Html") { Reporter = new HtmlReporting(TestAssemblies, new StringCollection(), ReportStream, this.ProjectName); } else if (this.ReportFormat == "Xml") { Reporter = new XmlReporting(TestAssemblies, new StringCollection(), ReportStream, this.ProjectName); } return(Reporter); }
public void GenerateReport() { MemoryStream RawXmlStream = new MemoryStream(); XmlReporting XmlReporter = new XmlReporting(this.TestAssemblies, this.ProductionAssemblies, RawXmlStream, this.ProjectName); XmlReporter.GenerateReport(); RawXmlStream.Position = 0; XPathDocument XPathReportReader = new XPathDocument(RawXmlStream); XmlReader XslReader = new XmlTextReader(this.GetXslStream()); XslTransform XslTransformer = new XslTransform(); XslTransformer.Load(XslReader); XslTransformer.Transform(XPathReportReader, null, this.ReportStream, null); }
private IReporting ReporterFactory(FileStream ReportStream) { IReporting Reporter = null; StringCollection TestAssemblies = new StringCollection(); TestAssemblies.Add(this.TestAssembly); if (this.ReportFormat == "Html") { Reporter = new HtmlReporting(TestAssemblies, new StringCollection(), ReportStream, this.ProjectName); } else if (this.ReportFormat == "Xml") { Reporter = new XmlReporting(TestAssemblies, new StringCollection(), ReportStream, this.ProjectName); } return Reporter; }
private IReporting ReporterFactory(FileStream ReportStream) { IReporting Reporter = null; if (this.Format == OutPutFormat.Html) { Reporter = new HtmlReporting(this.TestSet.FileNames, this.ProductionSet.FileNames, ReportStream, this.ProjectName); } else if (this.Format == OutPutFormat.Xml) { Reporter = new XmlReporting(this.TestSet.FileNames, this.ProductionSet.FileNames, ReportStream, this.ProjectName); } return Reporter; }