Ejemplo n.º 1
0
        private void CheckIfExamScoringIsCompleted(ScoreReceived aggregateEvent)
        {
            var questionScored =
                QuestionsAndStudentAnswersWithScore.First(_ => _.Key.Key.Id == aggregateEvent.Score.QuestionId);

            AllQuestionsScored = QuestionsAndStudentAnswersWithScore.All(_ => _.Value);
        }
Ejemplo n.º 2
0
 private void CheckIfExamScoringIsCompleted(ScoreReceived aggregateEvent)
 {
     AllQuestionsScored = QuestionsAndStudentAnswers
                          .All(questionsAndStudentAnswer =>
                               questionsAndStudentAnswer.Key.Id == aggregateEvent.Score.QuestionId);
 }
Ejemplo n.º 3
0
 public void Apply(ScoreReceived aggregateEvent)
 {
     Scores.Add(aggregateEvent.Score);
 }