Example #1
0
        public void SelectCourse(ExamViewModel quizInfo)
        {
            Quiz existQuiz = quizRepo.GetSingle(q => q.CourseID == quizInfo.CourseID);


            ExamViewModel viewModel = new ExamViewModel();

            viewModel.Quizes = quizRepo.GetItemListByQueryWithOrderByDesc(q => q.CourseID == existQuiz.CourseID, q => q.CreatedDate, 0, 1000);
            CollectionAssert.Contains(existQuiz, viewModel);
        }//end method