Short Question: Same as this unanswered problem
Long Question:
I just ported some code over from an MVC 4 + Web Api solution that was using Autofac into my
We're currently in a situation where we have tests that suffer from the 'missing httpcontext' issue but cannot yet use the excellent recommendations above due to version constraints.
The way we solved it was to create a 'mock' http context in our test setup: see: Mock HttpContext.Current in Test Init Method