public void GetDoctorAppointmentListTest() { // Arrange AppointmentData appointment = new AppointmentData(); // Act var result = appointment.GetDoctorAppointmentList(4).Count > 0; // Assert Assert.IsTrue(result); }
public ActionResult AppointmentList() { if (Session["userId"] == null) { return(Redirect("~")); } AppointmentData appointments = new AppointmentData(); List <Appointment> AppointmentList = appointments.GetDoctorAppointmentList((int)Session["userId"]); var DoctorViewObj = new DoctorProfileView((int)Session["userId"]); return(View(AppointmentList)); }