Beispiel #1
0
 public ActionResult Index(SrmQuizViewModel quiz)
 {
     var comparer = new SrmComparer(Srm.GetMasterSrms());
     comparer.QuizSrms = quiz.UserSrms;
     quiz.Message = comparer.IsCorrect() ? "Correct" : "Incorrect";
     return View(quiz);
 }
Beispiel #2
0
        public ActionResult Index(SrmQuizViewModel quiz)
        {
            var comparer = new SrmComparer(Srm.GetMasterSrms());

            comparer.QuizSrms = quiz.UserSrms;
            quiz.Message      = comparer.IsCorrect() ? "Correct" : "Incorrect";
            return(View(quiz));
        }
Beispiel #3
0
 public void srmComparer_whenIncorrectOrder_returnsFalse()
 {
     comparer.QuizSrms = GetUnorderedListofSrm();
     Assert.AreEqual(false, comparer.IsCorrect());
 }