예제 #1
0
        private void CheckIfExamScoringIsCompleted(ScoreReceived aggregateEvent)
        {
            var questionScored =
                QuestionsAndStudentAnswersWithScore.First(_ => _.Key.Key.Id == aggregateEvent.Score.QuestionId);

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