public void Finish() { ResultVisible = true; var result = new TestResult { CorrectAnswers = Items.Count(x => x.Answers.Any(y => y.IsCorrect == true && y.IsSelected == true)), Total = Items.Count() }; CorrectAnswers = Items.Count(x => x.Answers.Any(y => y.IsCorrect == true && y.IsSelected == true)); ResultVisible = true; Consumo.Add(result); }