Example #1
0
 public MultipleChoiceQuestion(int pollId, string qText, int number, IEnumerable <string> choices)
     : base(pollId, qText, number)
 {
     statsGenerator = new MultipleChoiceQuestionStatisticsGenerator();
     QuestionType   = QuestionType.MultipleChoice;
     Choices        = choices;
 }
Example #2
0
 public MultipleChoiceQuestionStatsGenerator()
 {
     statsGenerator = new MultipleChoiceQuestionStatisticsGenerator();
     question       = new MultipleChoiceQuestion(1, "test question", 1, new string[] { "opcja 1", "opcja 2", "opcja 3" });
     answers        = new List <Answer>
     {
         new MultipleChoiceAnswer {
             Choices = new string[] { "opcja 1", "opcja 3" }, Id = 1, QuestionId = question.Id
         },
         new MultipleChoiceAnswer {
             Choices = new string[] { "opcja 1" }, Id = 2, QuestionId = question.Id
         },
         new MultipleChoiceAnswer {
             Choices = new string[] { "opcja 2", "opcja 3" }, Id = 3, QuestionId = question.Id
         },
         new MultipleChoiceAnswer {
             Choices = new string[] { "opcja 1", "opcja 2" }, Id = 4, QuestionId = question.Id
         }
     };
 }
Example #3
0
 protected MultipleChoiceQuestion()
 {
     statsGenerator = new MultipleChoiceQuestionStatisticsGenerator();
 }