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; 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; }