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(); }
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(); }
public IActionResult GetAppointmentsForPatientInFuture(int id) { return(Ok(ViewAppointmentAdapter.AppointmentListToViewAppointmenDtoList(regularAppointmentService.GetAppointmentsForPatientInFuture(id)))); }