Пример #1
0
        public ActionResult CreateMultipleChoiseQuestion(string Question, string Correctanswer, string[] Answers, string GameID)
        {
            question_Handler.CreateMultipleChoiseQuestion(new Models.QuestionModels.MultipleChoiseQuestion()
            {
                Question = Question, Correctanswer = Correctanswer, Answers = Answers.ToList()
            }, Convert.ToInt32(GameID));

            return(RedirectToAction("Questions", new { GameID = Convert.ToInt32(GameID) }));
        }
Пример #2
0
 public void Test_CreateMultipleChoiseQuestion_WrongGameID()
 {
     newQuestion = newQuestion_copy;
     handler.CreateMultipleChoiseQuestion(newQuestion, 999);
 }