Feb 26, 2011 03:33 PM|duttavr|LINK
ASP.NET MVC sessions and books say ASP.NET MVC enables to do unit testing as logic would be in controller independent to HTTP Request. So that controller can be unit tested indivisually. I do not think so people write their bussiness logic in controllers
rather in seperate bussiness layer assembly. So there is no need to test controllers in bussiness perspective.
I do not think so we write web applications without a seperate Bussiness Layer. In this case Bussiness Layer also a clear seperation from UI. So
BL can also be tested very well using UNIT testing frameworks either in MVC or in webforms.
then why should we chose ASP.NET MVC over WebForms in terms of UNIT Testing. Could anyone please clarify me in this regard if I'm wrong?