Summary

In this chapter, we have written the code for the data access layer to support the first feature. There were a number of issues that were uncovered as we explored the implementation. We chose to use a typed DataSet, which enabled us to test individual entities without having to create all the associated entities. The choice of the typed DataSet also allows us to be disconnected from the database, which has the promise of improved database connection utilization, but we will have to wait and see whether that is useful to our solution, and in fact it might be a detriment. Finally, what does it buy you to have these types of tests? The one thing that stands out is that the database schema is exactly what we are expecting. If the schema were ...

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.