public void Print(SpecSuite suite) { foreach (var category in suite.Categories) { print(category); } }
public void Print(SpecSuite suite) { if (suite.Categories.Any()) { using (DocX document = DocX.Create(string.Format("{0}.docx", _fileName))) { foreach (var category in suite.Categories) printCategory(category, document); document.Save(); } } }