I am using Asp.net MVC3 and trying to do a simple Ajax post to the server which returns a partial view and updates my list of items during a search.
@usi
var controllerContext = MockRepository.GenerateMock(); controllerContext.Expect(c => c.HttpContext.Request["X-Requested-With"]).Return("XMLHttpRequest"); controller.ControllerContext = controllerContext;