/// <summary> /// notice exam coming /// </summary> /// <param name="userId">userid</param> /// <returns>stduent's coming exam Name datatable</returns> public ExamDS.ExamNoticeDataTable GetExamNoticeById(int userId) { ExamManager examManager = new ExamManager(); OesWCFContract.ExamDS.ExamNoticeDataTable table = new ExamDS.ExamNoticeDataTable(); table.Merge(examManager.GetExamNoticeById(userId)); return(table); }
public void TestGetExamNoticeById() { ExamDS.ExamNoticeDataTable table = examManager.GetExamNoticeById(userId); foreach (var item in table) { Assert.AreEqual("computer", item.exam_name); Assert.AreEqual("2015-10-1 0:00:00", item.effective_time.ToString()); } }