Exemple #1
0
 private QuizManager()
 {
     quiz = new Quiz();
     quiz.QuizId = 1;
     quiz.Score = 0 ;
     QuestionCount = db.Questions.Count<Question>();
     ScoreTable = new List<ResultsDto>();
 }
Exemple #2
0
 public void InsertQuiz(Quiz quiz)
 {
     _appDbContext.Quizzes.Add(quiz);
     _appDbContext.SaveChanges();
 }
Exemple #3
0
        public override bool Equals(object obj)
        {
            Quiz quiz = obj as Quiz;

            return(Id == quiz.Id);
        }
Exemple #4
0
 public QuizResults(string participantName, Quiz quiz)
 {
     this.participantName = participantName;
     this.Quiz            = quiz;
 }