Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Testing an event-sourced object's behavior using Cucumber
Scenario: Reschedule an appointment
Given an appointment was created for 2016-11-03T13:00 until 2016-11-03T14:00 called Appointment
And the appointment was renamed to Renamed appointment
When we reschedule the appointment to 2016-11-03T15:00 until 2016-11-03T16:00
Then an AppointmentRescheduled event is appended with the following properties:
| Start time | End time |
| 2016-11-03T15:00 | 2016-11-03T16:00 |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment