示例#1
0
 public IEnumerable <AnswerWithAnnotation> GetAnswersWithAnnotation()
 {
     return(AnswerByUser.Select(a => a.Value));
 }
示例#2
0
 public int GetCountOfTheAnswer(Answer answer)
 {
     return(AnswerByUser.Count(a => a.Value.Answer == answer));
 }
示例#3
0
 private bool UserHasAlreadyAnswered(Guid userId)
 {
     return(AnswerByUser.ContainsKey(userId));
 }
示例#4
0
 public bool HasAnyAnswer()
 {
     return(AnswerByUser.Any());
 }