Building a Simple Blog Engine with ASP.NET MVC and LINQ - Part 4
page 5 of 8
by Keyvan Nayyeri
Feedback
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 8656/ 323

Testing Process in MVC Pattern

But what is the testing process in MVC pattern for ASP.NET MVC? Model View Controller pattern is designed in a way to simplify the testing process by dividing the architecture of the application into independent components (Model, View and Controller). The philosophy behind MVC is to break the application in these components to limit the unit testing to Controller component.

In other words, MVC is designed in a way that you only need to unit test your controller classes and this is all the point.

Controller is a pure programming class and nothing more. On the other hand, it is completely independent from data model and views (data layer and user interface) and here you notice the point. This independence helps you to test your application just by testing the controller as a programming class.

I will show you how to unit test controllers in the next part.


View Entire Article

Article Feedback

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

User Comments

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 7/19/2008 10:42:26 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search