title: HttpContext.Current always null when sending request from unit test
body: <p>I have <code>Web Api controller Action method</code> I am trying to unit test. I have one custom filter which runs before that action controller.</p>
  
  <p>I have question regarding <code>HttpContext.Current.User.Identity.Name</code> that I am using inside my custom action filter.</p>
  
  <p>It works nicely when I send my http post request from web client.</p>
  
  <p>But, when I send http post request from my unit test than <code>HttpContext.Current</code> always complain for <code>null</code></p>
  
  <p>Don't understand where and what is wrong.
  Anybody can please explain it?</p>
  
  <p><strong>Please</strong> note that I have seen answers at <a href="https://stackoverflow.com/questions/4379450/mock-httpcontext-current-in-test-init-method">here</a> but not sure where I need to add that code in my case.</p>