public void Get_available_appointments_including_doctor_priority() { DoctorWorkDayService doctorWorkDayService = new DoctorWorkDayService(CreateDoctorWorkDayStubRepository(), null); Dictionary <int, List <Appointment> > result = doctorWorkDayService.GetAvailableAppointmentsByDateRangeAndDoctorIdIncludingPriority(new DateTime(2022, 12, 8), new DateTime(2022, 12, 8), 3, "Doctor"); Assert.Equal(48, result[5].Count + result[6].Count + result[7].Count); }
public void Get_available_appointments_including_date_range_priority_invalid() { DoctorService doctorService = new DoctorService(CreateDoctorStubRepository()); DoctorWorkDayService doctorWorkDayService = new DoctorWorkDayService(CreateDoctorWorkDayStubRepository(), doctorService); Dictionary <int, List <Appointment> > result = doctorWorkDayService.GetAvailableAppointmentsByDateRangeAndDoctorIdIncludingPriority(new DateTime(2022, 12, 8), new DateTime(2022, 12, 8), 3, "DateRange"); Assert.NotEqual(47, result[4].Count + result[6].Count + result[8].Count); }