Example #1
0
        public void TestGetExceptionOccurTime()
        {
            exam_exceptionTableAdapter exceptionAdapter = new exam_exceptionTableAdapter();
            int exceptionid = Convert.ToInt32(exceptionAdapter.InsertExceptionTime(userId, examId, DateTime.Parse("2015-09-09")));

            var table = examManager.GetExceptionOccurTime(userId, examId);

            foreach (var item in table)
            {
                Assert.AreEqual("2015-9-9 0:00:00", item.occur_time.ToString());
            }
            exceptionAdapter.DeleteException(exceptionid);
        }
Example #2
0
        public ExamDS.exam_exceptionDataTable GetExceptionOccurTime(int userId, int examId)
        {
            ExamManager examManager = new ExamManager();

            ExamDS.exam_exceptionDataTable table = new ExamDS.exam_exceptionDataTable();
            table.Merge(examManager.GetExceptionOccurTime(userId, examId));
            return(table);
        }