title: Using MockHttpClient nuget package in VS 2017
body: <p>I am trying to test an adapter service in VS 2017 in C#. My test is failing because it is wanting a 400 through 499 response from the <code>HTTPClient</code>. When my test runs the service returns a 500. </p>
  
  <p>So searching I found MockHttpClient nuget package but the examples given are not working when I try them in my test. </p>
  
  <p>example:
  <a href="https://github.com/codecutout/MockHttpClient/blob/master/README.md" rel="nofollow noreferrer">https://github.com/codecutout/MockHttpClient/blob/master/README.md</a></p>
  
  <p>I get an error saying </p>
  
  <blockquote>
    <p>'MockHttpClient' is a namespace but is used like a type</p>
  </blockquote>
  
  <p>I also added in a <code>using MockHTTPClient</code> at the top of my test.</p>
  
  <p>What am I doing wrong?</p>
  
  <p>getting error with the below</p>
  
  <pre><code>var mockHttpClient = new MockHttpClient();
  mockHttpClient.When("the url I am using").Returns(HttpStatusCode.Forbidden)
  </code></pre>