O'Reilly logo

ASP.NET MVC 2 Cookbook by Richard Kimber, Andrew Siemer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Mocking your data layer with NBuilder

In order for us to get started with other recipes in this chapter, we need to first build the application that we will be using in each of the following recipes. Oddly enough, the ability to build out your entire application without having any data storage or data access already in place is a common occurrence. You might not be on the team that builds the data-access layer or you might work in a dev shop where the database is under tight control of the database administrators. There are many scenarios where mocking or faking out the database and data access layer may come in handy or be a requirement.

In this recipe, we will be building a simple blog post and commenting system. We will create an application ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required