Posts Tagged ‘testing’

Unit Testing Asynchronous Operations

Posted: 11th April 2011 by thegrayzone in Development
Tags:

The Problem I’m currently working on an application that uses the MapPoint 2010 API to generate routing data. Some of the operations can be quite long-running (often < 20s but some can run up to a couple of mins). Due to this I use a BackgroundWorker in my main class to process each route’s data. [...]

Mocking Request.IsAjaxRequest()

Posted: 22nd March 2010 by thegrayzone in Development
Tags: , , , ,

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() [...]