title: how would I mock a querystring
body: <p>using the following in Moq</p>
  
  <pre><code>public Mock&lt;HttpRequestBase&gt; Request { get; set; }
  </code></pre>
  
  <p>how can I mock this Request[....]</p>
  
  <pre><code>(in controller)
  var modelFromPost = Request["mymodel"]
  </code></pre>
  
  <p>here's what I have so far</p>
  
  <pre><code>public class ContextMocks
  {
  
      public Mock&lt;HttpContextBase&gt; HttpContext { get; set; }
      public Mock&lt;HttpRequestBase&gt; Request { get; set; }
      public RouteData RouteData { get; set; }
  
  
      public ContextMocks(Controller controller)
      {
          HttpContext = new Mock&lt;HttpContextBase&gt;();
          HttpContext.Setup(x =&gt; x.Request).Returns(Request.Object);
  
      }
  
  }
  </code></pre>
  
  <p>cheers!</p>