Skip to content

Instantly share code, notes, and snippets.

@heemskerkerik
Last active November 3, 2016 13:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save heemskerkerik/72ee0895c3f88c59a60071c3b61ef072 to your computer and use it in GitHub Desktop.
Save heemskerkerik/72ee0895c3f88c59a60071c3b61ef072 to your computer and use it in GitHub Desktop.
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