/// <summary>
        /// Writes an HTML summary report.
        /// </summary>
        /// <param name="testRunGroup">The test run whose results you want to write to text.</param>
        /// <param name="testRunNameClip">The starting part of the test run names you want to remove.</param>
        /// <returns>String that is a multiline text format of the test results.</returns>
        public static string WriteToHtmlSummaryReport(this xBDD.Model.TestRunGroup testRunGroup,
                                                      TestRunGroupReportConfiguration config,
                                                      List <ReportReasonConfiguration> sortedReasonConfigurations)
        {
            ReportingFactory             factory = new ReportingFactory();
            HtmlTestRunGroupReportWriter saver   = factory.GetHtmlTestSummaryReportWriter(config, sortedReasonConfigurations);

            return(saver.WriteToHtmlSummaryReport(testRunGroup));
        }
 internal HtmlTestRunGroupReportWriter(TestRunGroupReportConfiguration config, List <ReportReasonConfiguration> sortedReasonConfigurations)
 {
     this.config = config;
     this.sortedReasonConfigurations = sortedReasonConfigurations;
     this.hW = new HtmlWriter(sortedReasonConfigurations, config);
 }