示例#1
0
 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);
         }
     }
 }
示例#2
0
 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);
         }
     }
 }