title: How to mock HttpContext.Current.Items with NUnit and Rhino Mocks
body: <p>I'm using <code>NUnit</code> and <code>RhinoMocks</code> for unit testing on the (WebApi) project.</p>
  
  <p>There is a method I'm trying to write test for, which is supposed to add an item to HttpContext.Current.Items.</p>
  
  <pre><code>public override void OnActionExecuting(HttpActionContext actionContext)
  {
      HttpContext.Current.Items.Add("RequestGUID", Guid.NewGuid());
      base.OnActionExecuting(actionContext);
  }
  </code></pre>
  
  <p>I have no idea how can I make <code>HttpContext.Current.Items</code> available to the method when ran from within a test method. How can I achieve this?</p>
  
  <p>Also, how can I check if the item has been added (what kind of assertion can/should I use)</p>