Last active
November 3, 2016 13:40
-
-
Save heemskerkerik/72ee0895c3f88c59a60071c3b61ef072 to your computer and use it in GitHub Desktop.
Testing an event-sourced object's behavior using Cucumber
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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