Recently I was tasked with investigating Controller testing within our ASP.NET MVC apps. Our applications typically use a lot of jQuery AJAX calls to controller methods. To prevent users manually typing the URLs, the first thing that is done in any controller method that is called using AJAX is a check to see if Request.IsAjaxRequest() [...]
Posts Tagged ‘mocking’
Mocking Request.IsAjaxRequest()
Posted: 22nd March 2010 by thegrayzone in DevelopmentTags: ajax, ASP.NET MVC, C#, mocking, testing
1