Tag Archives: MVC

Unit Testing an ASP.NET MVC 4 Controller using MS Test, Rhino Mocks, AutoMapper and Dependency Injection

I decided to put together a demo project to showcase unit testing an ASP.NET MVC controller. The MVC controller is part of a much larger n-tier solution that stores data in SQL Server, uses Entity Framework, has a data layer … Continue reading

Posted in Unit Testing | Tagged , , | Leave a comment

ASP.NET MVC3 Using Code First Entity Framework Without Database Generation

Note that this works just as well with MVC4 as it does MVC3. So, when is Code First not Code First? It is possible, even recommended, to use ‘code first’ techniques even when you are not generating the database from … Continue reading

Posted in Entity Framework | Tagged , | Leave a comment