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.