I have following web Api controller method.
When I run this code through web, HttpContext.Current is never null and give desired value.
HttpContext.Current
never null
you can try to add FakeHttpContext nuget package.