public void ThenCanAddTableOfContentsWorksheetSuccessfully() { var excelTableOfContentsFormatter = new ExcelTableOfContentsFormatter(); using (var workbook = new XLWorkbook()) { IXLWorksheet worksheet = workbook.AddWorksheet("SHEET1"); excelTableOfContentsFormatter.Format(workbook, null); } }
public ExcelDocumentationBuilder(Configuration configuration, DirectoryTreeCrawler featureCrawler, ExcelFeatureFormatter excelFeatureFormatter, ExcelSheetNameGenerator excelSheetNameGenerator, ExcelTableOfContentsFormatter excelTableOfContentsFormatter) { this.configuration = configuration; this.featureCrawler = featureCrawler; this.excelFeatureFormatter = excelFeatureFormatter; this.excelSheetNameGenerator = excelSheetNameGenerator; this.excelTableOfContentsFormatter = excelTableOfContentsFormatter; }
public ExcelDocumentationBuilder( IConfiguration configuration, ExcelFeatureFormatter excelFeatureFormatter, ExcelSheetNameGenerator excelSheetNameGenerator, ExcelTableOfContentsFormatter excelTableOfContentsFormatter, IFileSystem fileSystem) { this.configuration = configuration; this.excelFeatureFormatter = excelFeatureFormatter; this.excelSheetNameGenerator = excelSheetNameGenerator; this.excelTableOfContentsFormatter = excelTableOfContentsFormatter; this.fileSystem = fileSystem; }