13. Build a Contact Manager Application
Walkthrough #4
Refactor using software design patterns
14. Software Design Patterns
Controller Layer
Application flow control
Service Layer
Business logic (validation logic)
Repository Layer
Data access logic
15. Build a Contact Manager Application
Walkthrough #5
Create unit tests
16. Test-Driven Development
Test-Driven Development is a software design
methodology:
Red – Create a failing test
Green – Write just enough code to pass the test
Refactor – Improve the design of your code
17. Test-Driven Development
Benefits:
Keeps you focused on the right task:
YAGNI (You Ain’t Gonna Need It)
KISS (Keep It Simple Stupid)
Continuous Feedback
Take short steps and get continuous feedback that you
are on the right path.
Incremental Design
Design becomes part of the development process instead
of something done by an architect
19. Summary
ASP.NET MVC enables you to build loosely-
coupled, highly-testable web applications that
can be easily modified over time.
20. Resources
www.ASP.net/mvc -- The official Microsoft
website for all things ASP.NET MVC
StephenWalther.com – My blog on ASP.NET
MVC
Haacked.com – Phil Haack is the Program
Manager for ASP.NET MVC
21. Table Format
Table Title
Column 1 Column 2 Column 3 Column 4 Column 5
22.
23.
24. Related Content
Breakout Sessions (session codes and titles)
Interactive Theater Sessions (session codes and titles)
Hands-on Labs (session codes and titles)
Hands-on Labs (session codes and titles)