Beispiel #1
0
 private int GetTotalAnsweringFrequency(AnswerStatistic answerStatistic, AnsweredQuestion answeredQuestion)
 {
     if (!answerStatistic.AnsweredQuestionsById.ContainsKey(answeredQuestion.QuestionId))
         return answeringChoicesCount;
     return answerStatistic.AnsweredQuestionsById[answeredQuestion.QuestionId].ChoicesFrequenciesTotal;
 }
Beispiel #2
0
 private int GetAnsweringFrequency(AnswerStatistic answerStatistic, AnsweredQuestion answeredQuestion)
 {
     if (!answerStatistic.AnsweredQuestionsById.ContainsKey(answeredQuestion.QuestionId))
         return 1;
     return answerStatistic.AnsweredQuestionsById[answeredQuestion.QuestionId].ChoicesFrequencies[answeredQuestion.Choise];
 }