Jonas Stawski

Everything .NET and More

HttpContextBase and Dependency Injection

I was just hunt down by a minor bug in my code and couldn’t figure out what was happening. I’m using Dependency Injection to inject the HttpContextBase into a service call so I can more easily unit test it. So I was setting it up like this: ... [More]