コード例 #1
0
        public void Get_Appointments_In_Future_Unsuccessfuly_Wrong_Patient()
        {
            RegularAppointmentService service           = new RegularAppointmentService(CreateStubRepositoryForFuture(2), new OperationService(new Mock <IOperationRepository>().Object));
            List <DoctorAppointment>  foundAppointments = service.GetAppointmentsForPatientInFuture(1);

            foundAppointments.ShouldBeEmpty();
        }
コード例 #2
0
        public void Get_Appointments_In_Future_Unsuccessfuly()
        {
            RegularAppointmentService service           = new RegularAppointmentService(CreateStubRepository(), new Mock <IEmployeesScheduleRepository>().Object, new DoctorService(new Mock <IOperationRepository>().Object, CreateStubRepository(), new Mock <IEmployeesScheduleRepository>().Object, new Mock <IDoctorRepository>().Object), new Mock <IPatientsRepository>().Object, new OperationService(new Mock <IOperationRepository>().Object));
            List <DoctorAppointment>  foundAppointments = service.GetAppointmentsForPatientInFuture(1);

            foundAppointments.ShouldBeEmpty();
        }
コード例 #3
0
 public IActionResult GetAppointmentsForPatientInFuture(int id)
 {
     return(Ok(ViewAppointmentAdapter.AppointmentListToViewAppointmenDtoList(regularAppointmentService.GetAppointmentsForPatientInFuture(id))));
 }