コード例 #1
0
        public void GetDoctorAppointmentListTest()
        {
            // Arrange
            AppointmentData appointment = new AppointmentData();

            // Act
            var result = appointment.GetDoctorAppointmentList(4).Count > 0;

            // Assert
            Assert.IsTrue(result);
        }
コード例 #2
0
ファイル: DoctorController.cs プロジェクト: skgtrx/CMS
        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));
        }