Building a Simple Blog Engine with ASP.NET MVC and LINQ - Part 4
page 1 of 8
Published: 30 Apr 2008
Abstract
In the fourth part of this series, Keyvan talks about the unit testing concepts related to the MVC pattern and how Microsoft has adapted these concepts for its ASP.NET MVC framework. He shows these principles and the process that should be followed to unit test an ASP.NET MVC application.
by Keyvan Nayyeri
Feedback
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 10631/ 354

Introduction

In the first three parts of this series I talked about some major aspects of MVC pattern, ASP.NET MVC Framework and KBlog (the simple blog engine that is being created in this series as a showcase). So far, I discussed controller and data model as two of the three main components in Model View Controller (MVC) pattern.

The main reason for the popularity and demand for MVC pattern among web developers (not only ASP.NET developers) is the fact that MVC enables testing capabilities for developers to easily test their web applications. So MVC brings Test-Driven Development (TDD) to web applications, which is a very common and popular way to develop software these days.

Of course, there are some ways to unit test your traditional web applications, but things get much easier with MVC pattern.

The topic of this part and the next part is unit testing. In MVC pattern you can test your application easily and just by testing your controller classes. Here I show you how to unit test your MVC applications, but before that we need to get started with some theoretical concepts in this part.

Before digging into the main body of this part, let me point out that the first three parts of this article series were written based on the first public version and CTP of ASP.NET MVC Framework while this part is written based on the second CTP that you can download from here.


View Entire Article

Article Feedback

Title:  
Name:  
Url: ( Optional )
Comment:  
Please add 4 and 4 and type the answer here:

User Comments

Title: Nice   
Name: Nano
Date: 7/25/2008 12:56:14 PM
Comment:
I can't wait any more... Next part plz!
Title: Kblog View   
Name: Shaurav
Date: 7/22/2008 12:41:55 PM
Comment:
When are you going to publish the next part of it where you are going to talk about Views
Title: KBlog DEMO   
Name: Jame
Date: 6/19/2008 10:35:05 PM
Comment:
Can you provide the KBlog DEMO download address?
Title: MVC   
Name: Asmi
Date: 6/9/2008 5:24:51 AM
Comment:
Nice Article!! Waiting for the next to implement these practically.........
Title: MVC   
Name: Basheer Ahmed
Date: 5/17/2008 2:58:30 PM
Comment:
trp to put all series in one pdf file format
Title: sweet   
Name: Johan
Date: 5/13/2008 3:59:36 PM
Comment:
Nice article, looking forward for the next one.






Ads Powered by Lake Quincy Media
Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2008 ASPAlliance.com  |  Page Processed at 9/7/2008 5:04:45 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search