Skip to content

Commit

Permalink
PI-1991: Added schedule endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
pmcphee77 committed Mar 21, 2024
1 parent 74ab662 commit 0ddf926
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ internal class ScheduleIntegrationTest {
res.appointments[0].location?.officeName,
equalTo(ContactGenerator.FIRST_APPT_CONTACT.toAppointment().location?.officeName)
)
assertThat(res.appointments[0].location?.postcode, equalTo("H34 7TH"))
}

@Test
Expand All @@ -61,6 +62,7 @@ internal class ScheduleIntegrationTest {
res.appointments[0].location?.officeName,
equalTo(ContactGenerator.PREVIOUS_APPT_CONTACT_ABSENT.toAppointment().location?.officeName)
)
assertThat(res.appointments[0].location?.postcode, equalTo("H34 7TH"))
}

@Test
Expand Down Expand Up @@ -91,9 +93,9 @@ internal class ScheduleIntegrationTest {
val expectedAppointment = ContactGenerator.NEXT_APPT_CONTACT.toAppointment().copy(documents = expectedDocs)
assertThat(res.personSummary.crn, equalTo(person.crn))
assertThat(res.appointment.id, equalTo(expectedAppointment.id))
assertThat(res.appointment.id, equalTo(expectedAppointment.id))
assertThat(res.appointment.type, equalTo(expectedAppointment.type))
assertThat(res.appointment.location?.officeName, equalTo(expectedAppointment.location?.officeName))
assertThat(res.appointment.documents.size, equalTo(expectedAppointment.documents.size))
assertThat(res.appointment.location?.postcode, equalTo("H34 7TH"))
}
}

0 comments on commit 0ddf926

Please sign in to comment.