title: ASP.NET WebApi unit testing with Request.CreateResponse
body: <p>I am trying to write some unit tests for my ApiController and faced some issues. There is a nice extension method called Request.CreateResponse that helps a lot with generating response. </p>
  
  <pre><code>public HttpResponseMessage Post(Product product)
  {
    var createdProduct = repo.Add(product);
    return this.Request.CreateResponse(HttpStatusCode.Created, createdProduct);
  }
  </code></pre>
  
  <p>Is there any way to mock CreateResponse without using of partial mocks or direct using of "new HttpResponseMessage(...)"?</p>