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): 38754/ 358

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 1 and 1 and type the answer here:

User Comments

Title: I wished to leave only a tiny comment to help you and need you an awesome continuation. Your work are genuinely appreciate able.   
Name: Lexia 3
Date: 1/11/2012 3:10:34 AM
Comment:
I wished to leave only a tiny comment to help you and need you an awesome continuation. Your work are genuinely appreciate able.
Title: Filipino chat Room   
Name: Rekoyan
Date: 9/6/2011 9:02:47 PM
Comment:
Come visit the Filipino Chat Community www.chat.ph it is the live chat community for the Philipines
Title: merawakil   
Name: alice john
Date: 10/18/2010 6:18:14 AM
Comment:
The ASP.NET methodology has been a huge leap in the way web applications are developed and deployed. Previously in traditional ASP, code was cluttered and there was no clear and simplified way in which the benefits of object oriented programming could be brought to the web. In addition, there was no clear separation between the presentation layer and business logic, making maintenance of code a big issue.
Title: This is one of my favorite website. I like the information that is being share. Thanks a lot.   
Name: pacquiao vs margarito online
Date: 10/6/2010 4:48:37 PM
Comment:
This is one of my favorite website. I like the information that is being share. Thanks a lot.
Title: Mark S. is definitely on the right track. If you want to get a professional looking email address, Id recommend buying your name domain name, like or   
Name: vibram fivefingers
Date: 9/13/2010 9:56:10 PM
Comment:
Mark S. is definitely on the right track. If you want to get a professional looking email address, Id recommend buying your name domain name, like or
If its common it might be difficult to get, however, be creative and you can usually find something.
Title: Colorado Business Immigration   
Name: Colorado Business Immigration
Date: 9/10/2010 12:50:01 PM
Comment:
hi very nice article i got a lot of information from it.
thompson44
Title: Thanks for the very nice info. It is really useful.   
Name: pacquiao vs margarito
Date: 8/21/2010 10:40:12 AM
Comment:
Thanks for the very nice info. It is really useful.
Title: Offshore ASP.net Web programmers   
Name: ashokpatidar89@gmail.com
Date: 6/17/2010 2:26:12 AM
Comment:
Awesome!

I enjoyed it!

Thanks!
Title: Authentic Designer Handbags   
Name: john mite
Date: 5/13/2010 6:32:30 AM
Comment:
Thanks for taking the time to share this, I feel strongly about it and love reading more on this topic. It is extremely useful for me.
Title: Yachtcharter Griechenland   
Name: pramod.singh.sv@gmail.com
Date: 4/15/2010 2:39:29 AM
Comment:
I was just thinking about Building a Simple Blog Engine with ASP.NET MVC and LINQ - Part 4 and you've really helped out. Thanks!
Title: Writing Assignment Help   
Name: Writing Assignment Help
Date: 3/19/2010 8:57:49 AM
Comment:
Your blog provides us a very great information. Its really very helpful to me to find result on search engine. Hope to hear more good information related to searching from your side.
Title: nice blog i learn a lot from it. Thanks for sharing. regards, rosela   
Name: Watch Pacquiao Vs Clottey Live online
Date: 3/9/2010 6:43:14 PM
Comment:
nice blog i learn a lot from it.
Thanks for sharing.

regards,

rosela
Title: blog hopping...nice blog   
Name: Webthesurfi Rugs Webdesign
Date: 3/9/2010 6:40:17 PM
Comment:
blog hopping...nice blog
Title: first step   
Name: swarovski for men
Date: 3/8/2010 3:47:14 AM
Comment:
Its first time here i found its very nice and informative blog. Thanks for sharing this useful post with us. i wanna to be here very often. I am going to check this site for more details
Title: your blog is very imformative and i learn a lot from it. Thanks for sharing. regards, rosela   
Name: Watch Pacquiao Vs Clottey Live
Date: 2/25/2010 9:15:22 PM
Comment:
your blog is very imformative and i learn a lot from it.
Thanks for sharing.

regards,

rosela
Title: very entertaining and informative blog. Ill be back..   
Name: Webthesurfi Rugs Webdesign
Date: 2/25/2010 7:37:42 PM
Comment:
very entertaining and informative blog. Ill be back..
Title: wow..i love reading your blog. i'll be back soon..   
Name: Sikat ang Pinoy
Date: 2/12/2010 5:01:11 PM
Comment:
wow..i love reading your blog. i'll be back soon..
Title: sikat ang pinoy   
Name: renantech@yahoo.com
Date: 1/29/2010 8:40:21 PM
Comment:
I like blogengine.net powered by asp.net because this is the free technology that i can create modern website for my personal use or for business use. I would like to thank you for sharing your thoughts and time into the stuff you post!! Thumbs up!
Title: hii   
Name: s
Date: 10/19/2009 12:51:50 AM
Comment:
nice work..
Title: Busby SEO Test   
Name: ranelyn_castro@yahoo.com
Date: 11/29/2008 12:30:54 AM
Comment:
What a nice post about Building a Simple Blog Engine with ASP.NET MVC and LINQ
Title: Source code?   
Name: James
Date: 10/31/2008 12:21:35 PM
Comment:
Great article! where is the source code?
Title: Outstanding article!ank you!   
Name: Ryan
Date: 10/11/2008 5:53:56 PM
Comment:
Outstanding article Keyvan! I would love to see the completed blog. I realize there have been some changes to the framework but, the views would be a very caluable post.

Th
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.

Product Spotlight
Product Spotlight 





Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2012 ASPAlliance.com  |  Page Processed at 2/12/2012 5:51:07 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search