1. The Story of a Story
Alistair McKinnell
www.valuablecode.com
@amckinnell
a.mckinnell@computer.org
2.
3.
4.
5.
6.
7.
8.
9. Customer is charged for
a late return
In order to discourage overdue
video rentals
As a video store clerk
I need to charge each customer
a late return fee
20. Charge .50 each day a new title is overdue
Given a customer that has rented Iron Man 2
When the rental is returned <hours> hours late
Then the late return fee is <fee>
Examples:
|hours|fee|
|16|0.50|
|24|1.00|
|49|1.50|
21. Charge 1.50 each week a classic title is overdue
Given a customer that has rented Pulp Fiction
When the rental is returned <days> days late
Then the late return fee is <fee>
Examples:
|days|fee|
|3|1.50|
|7|3.00|
|17|4.50|