title: Web API RouteUrl returns null exception in test
body: <p>I am a bit new unit testing and am trying to use Moq and MSTest in Visual Studio 2012 to create a test on a method for one of my applications. The application works as it should, but when I run my test, I'm getting a null reference exception on the following:</p>
  
  <pre><code>var fooURL = Url.RouteUrl("MyApi", new { httproute = string.Empty, controller = "MyController", id = id }, Request.Url.Scheme);
  </code></pre>
  
  <p>I have tried reading and wrapping my head around <a href="https://stackoverflow.com/questions/674458/asp-net-mvc-unit-testing-controllers-that-use-urlhelper">ASP.NET MVC: Unit testing controllers that use UrlHelper</a>, but these appear to be concerned with testing the url itself. I am more concerned with testing what comes later in my function.</p>
  
  <p>Is the setup mentioned in the above link too little (or too much) to get my test working? Or am I looking in the wrong direction?</p>