Specifically, how can I pass the static method Request.IsAjaxRequest()?
I get the exception 'System.ArgumentNullException' when I try to test the following code:
if (Request.IsAjaxRequest())
{
return Json(data);
}
return View(data2);
I'm using Moq. Thanks for any help.