public void Verify_ScheduleOfCoursesRepository_GetStudentScheduleOfTerm_Returns_Empty_Data_Against_Invalid_DbStudent() { IScheduleOfCoursesRepository scheduleOfCoursesRepository = new SqlScheduleOfCoursesRepository(); var scheduleList = scheduleOfCoursesRepository.GetStudentScheduleOfTerm(TestConstants.InvalidUserId); Assert.IsNotNull(scheduleList); Assert.IsTrue(scheduleList.Count == 0); }
public void Verify_ScheduleOfCoursesRepository_GetStudentScheduleOfCourses_Returns_Empty_Data_Against_Invalid_DbStudent_and_Invalid_Term() { IScheduleOfCoursesRepository scheduleOfCoursesRepository = new SqlScheduleOfCoursesRepository(); var studentScheduleOfCourses = scheduleOfCoursesRepository.GetStudentScheduleOfCourses(TestConstants.InvalidUserId, TestConstants.InvalidScheduleOfCourseTerm); Assert.IsNotNull(studentScheduleOfCourses); Assert.IsNotNull(studentScheduleOfCourses.ScheduleOfCourses); Assert.IsNull(studentScheduleOfCourses.StudentName); Assert.IsTrue(studentScheduleOfCourses.ScheduleOfCourses.Count == 0); }