private void CheckIfExamScoringIsCompleted(ScoreReceived aggregateEvent) { var questionScored = QuestionsAndStudentAnswersWithScore.First(_ => _.Key.Key.Id == aggregateEvent.Score.QuestionId); AllQuestionsScored = QuestionsAndStudentAnswersWithScore.All(_ => _.Value); }
private void CheckIfExamScoringIsCompleted(ScoreReceived aggregateEvent) { AllQuestionsScored = QuestionsAndStudentAnswers .All(questionsAndStudentAnswer => questionsAndStudentAnswer.Key.Id == aggregateEvent.Score.QuestionId); }
public void Apply(ScoreReceived aggregateEvent) { Scores.Add(aggregateEvent.Score); }