Browse by Tags

All Tags » Unit Test (RSS)
In the previous post , we have created our initial repositories, in this post I will show how you can use the compiled query of Entity Framework in our repository. To use the compiled query we will put each query of our repositories into its own class...
In the previous post we have created our initial domain model, in this post I will show you how the domain model  is mapped to database with Entity Framework 4.0. But before that I would like to discuss how I usually structure the Visual Studio Projects...
If you are familiar with YSlow recommendations, I guess you know that it recommends to put your CSS files at the top( #5 )  and JavaScript files at the bottom( #6 ) of the pages. Placing the CSS files at the top is not an issue but putting the JavaScript...
With the new System.Web.Abstraction namespace we can now easily write unit testable HttpModule and HttpHandler . In this post, I will show you how to write unit testable HttpModule and HttpHandler . Prior the release of System.Web.Abstraction the problem...
Posted by kazimanzurrashid | 9 comment(s)
Filed under: , ,
If you are a TDD purist, you should know that accessing file system in Unit Test is violating the rule. But in our application, our infrastructural code often requires to access the configuration values form web.config/app.config. In this post, I will...
Posted by kazimanzurrashid | 5 comment(s)
Filed under: , , ,
In my previous post , I have shown how to create Linq to Sql Repository which will have the maximum code coverage, In this post, I will show a simple UnitOfWork class which will flash the changes back to your database. I will be again use my ongoing UnityCommonServiceLocatorMVC...
In this post, I will show you how you can architect your Linq To Sql repository which will have 100% code coverage. I will use our favorite Northwind database along with my ongoing UnityCommonServiceLocatorMVC project. First, lets add a Linq To Sql diagram...
More Posts