Esempio n. 1
0
        public QuestionDS.ExamQuestionDataTable FindQuestionByExamId(int?id)
        {
            QuestionManager manager = new QuestionManager();

            QuestionDS.ExamQuestionDataTable table = new QuestionDS.ExamQuestionDataTable();
            table.Merge(manager.FindQuestionByExamId(id));
            return(table);
        }
Esempio n. 2
0
 public void TestFindQuestionByExamId()
 {
     QuestionDS.ExamQuestionDataTable table = questionManager.FindQuestionByExamId(examId);
     foreach (var item in table)
     {
         Assert.AreEqual("how do you do?", item.title);
     }
 }