public void FindQuizTest() { DBQuiz dbquiz = new DBQuiz(); var quizzes = dbquiz.GetAll(); Assert.IsTrue(quizzes.Count >= 2); foreach (Quiz quiz in quizzes) { Assert.IsTrue(quiz != null, "Quiz is null"); Assert.IsTrue(quiz.CreateDate != null, "Quiz has no create date"); Assert.IsTrue(quiz.UpdatedDate != null, "Quiz has no updated date"); Assert.IsTrue(quiz.Id != 0, "Quiz id is 0"); Assert.IsTrue(quiz.Title != null, "Quiz has no title."); } }
public ScoreRepository(DBQuiz db) { _db = db; }
public QuestionRepository(DBQuiz db) { _db = db; }