title: Moq'ing HttpContext.Current
body: <p>I have a class library that has a method that sends emails based on a template. I access the template via the following:</p>
  
  <pre><code>HttpContext.Current.Server.MapPath("email template path");
  </code></pre>
  
  <p>Now when it comes to writing my unit tests I want to be able mock out the "Current Context", I have tried to use the MVCMockHelpers but the "Current" property always returns null.</p>
  
  <p>Is it possible to mock this property out? If so how do I go about it?</p>