Chapter 8. Driving Development with Customer Tests

In this chapter, we add the ability to add and delete a review from an existing recording. These capabilities are really two features, but due to the similarities in the implementation, we have grouped them together. Also, instead of implementing the functionality and then checking in with the customer to verify whether or not it’s correct (as we did previously), we’ll first work with the customer to define a set of customer tests and then implement the functionality to make the tests pass. This approach should eliminate the issues that we had implementing the previous feature when we, as the programmers, made some assumptions that turned out to be incorrect. Having customer tests prior to starting ...

Get Test-Driven Development in Microsoft® .NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.