Answers to selected exercises are available on the book Web site; see Appendix B for details.
1.
Using DoFixture tables in flow style, write a new chat test: "Anna creates a second room and moves to it." As in the exercises in Chapter 4, you decide whether she is only in the latest room or is in both.
2.
Write new tests for the chat server, such that each room is considered to have an owner, and only the owner may remove the room and only when it is empty.
3.
Choose a simple sequence of steps in a business process that is relevant to you and write a test using flow-style fixtures.
4.
From the exercises in Chapter 3, create a CalculateFixture table for this business rule:
We charge for time based on the charge rate of the consultant, in units of whole hours, and with a minimum charge of $5,000.