Skip to Content
Beginning ASP.NET MVC 1.0
book

Beginning ASP.NET MVC 1.0

by Simone Chiaretta, Keyvan Nayyeri
August 2009
Beginner to intermediate content levelBeginner to intermediate
575 pages
13h 16m
English
Wrox
Content preview from Beginning ASP.NET MVC 1.0

Chapter 19. Case Study 2

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 (http://flickr.com).

This case study addresses the following points:

  • Using the TDD approach

  • Designing for testability

  • Using action filters

  • Setting up authentication

  • Using AJAX and jQuery

If you are not familiar with these topics, we encourage you to go back to the relevant chapters (chapters 8, 9, 11, 12 and 15) and give them a quick read.

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.

User Stories (aka 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. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Beginning ASP.NET MVC 4

Beginning ASP.NET MVC 4

José Rolando Guay Paz
Programming ASP.NET MVC 4

Programming ASP.NET MVC 4

Jess Chadwick, Todd Snyder, Hrusikesh Panda
Professional ASP.NET MVC 2

Professional ASP.NET MVC 2

Jon Galloway, Phil Haack, Scott Hanselman, Scott Guthrie, Rob Conery

Publisher Resources

ISBN: 9780470433997Purchase book