public void OutputEveryQuestionFromEachCategory(IOutput output) { output.WriteDocumentHeader("Interview Questions"); foreach (var category in CategoriesOrdered) { output.WriteSectionHeader(category); foreach (var question in _questions.AllQuestionsByCategory[category]) { output.WriteQuestion(question, IncludeAnswers, IncludeHints); } } }
public void OutputQuestionsFromSelectedCategories(IOutput output) { output.WriteDocumentHeader("Interview Questions"); foreach (var category in _categories) { output.WriteSectionHeader(category.Category); var questions = _questions.GetRandomQuestionsByCategory(category.Category, category.QuestionCount); foreach (var question in questions) { output.WriteQuestion(question, IncludeAnswers, IncludeHints); } } }