In the previous chapter, you went through all the parts of a simple blog engine written on ASP.NET MVC, where you got a taste of what writing a full database-driven application involves. But it lacked some of the little utility components that are possible, thanks to the MVC framework and its many extensibility points.
This case study covers the missing points and does it while developing a photo gallery, which takes it contents not from a local storage, but from Flickr (
This case study addresses the following points:
Using the TDD approach
Designing for testability
Using action filters
Setting up authentication
Using AJAX and jQuery
Another issue we try to emphasize is the importance of using a clean HTML markup structure.
Let's get into the analysis of the WroxGallery application, starting from the first thing that a project should have: the requirements.
Because WroxGallery adopts a Test Driven Development approach, the first thing you have to decide is what does the application have to do? In TDD jargon, the requirements are called User Stories.
This application has to:
Allow any user to see the five most recent photos on the home page.
Allow any user to see all the albums in a sidebar on the all the pages.
Allow any user to search for photos based on their tags. ...