Mocking HttpContext, HttpResponse, HttpRequest, HttpSessionState etc. in ASP.Net

While developing web application using ASP.Net. If one wants to follow TDD, there are a lot challenges that one has to face. One of the challenge is to mock various web based objects like HttpContext, HttpRequest etc.. In this post I will talk about mocking following web based objects HttpContext HttpRequest HttpResponse HttpSessionState ( Page’s [...]

Correct Usage of Finalize and Dispose

Couple of day back I was reading an article by Jimmy Bogard Dependency Injection in ASP.NET MVC: Views. Over there I found an interesting thing that is correct usage of finalize and dispose. There are articles that discuss finalize, discuss and garbage collector. So, I will just give a small overview after the correct usage. [...]