You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-8Lines changed: 9 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -109,14 +109,15 @@ If you are not familiar with what a block of hotel rooms, here is a brief descri
109
109
110
110
#### User Stories
111
111
112
-
- As an administrator, I can create a block of rooms
113
-
- To create a block you need a date range, collection of rooms and a discounted room rate
114
-
- The collection of rooms should only include rooms that are available for the given date range
115
-
- If a room is set aside in a block, it is not available for reservation by the general public, nor can it be included in another block
116
-
- As an administrator, I can check whether a given block has any rooms available
117
-
- As an administrator, I can reserve a room from within a block of rooms
118
-
119
-
#### Constraints
112
+
- As a user of the hotel system,
113
+
- I can create a Hotel Block if I give a date range, collection of rooms, and a discounted room rate
114
+
- I can see an exception raised if I try to create a Hotel Block and at least one of the rooms is unavailable for the given date range
115
+
- Given a specific date, and that a room is set aside in a hotel block for that specific date, I cannot reserve that specific room for that specific date, because it is unavailable
116
+
- Given a specific date, and that a room is set aside in a hotel block for that specific date, I cannot create another hotel block that includes that specific room for that specific date, because it is unavailable
117
+
- I can check whether a given block has any rooms available
118
+
- I can reserve a room from within a block of rooms
119
+
120
+
#### Details
120
121
121
122
- A block can contain a maximum of 5 rooms
122
123
- When a room is reserved from a block of rooms, the reservation dates will always match the date range of the block
0 commit comments