コード例 #1
0
 public void ThenCanAddTableOfContentsWorksheetSuccessfully()
 {
     var excelTableOfContentsFormatter = new ExcelTableOfContentsFormatter();
     using (var workbook = new XLWorkbook())
     {
         IXLWorksheet worksheet = workbook.AddWorksheet("SHEET1");
         excelTableOfContentsFormatter.Format(workbook, null);
     }
 }
コード例 #2
0
 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;
 }
コード例 #3
0
 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;
 }
コード例 #4
0
 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;
 }