Welcome to the navigation

Pariatur, cupidatat id excepteur sit laborum, dolore minim velit aute in nostrud non eu officia dolor quis occaecat ut ex et ipsum sint duis nisi. Sit id aute adipisicing pariatur, eu excepteur cupidatat cillum proident, officia laboris enim et in occaecat qui do quis fugiat minim mollit nostrud veniam, exercitation

Yeah, this will be replaced... But please enjoy the search!

Creating your custom HttpControllerContext for Web API

I needed to fiddle a bit in a API method returning a HttpResponseMessage when validating captchas that wasn't included in the model validation.

HttpConfiguration config = new HttpConfiguration();
IHttpRouteData route = new HttpRouteData(new HttpRoute());
HttpRequestMessage req = new HttpRequestMessage();
req.Properties[HttpPropertyKeys.HttpConfigurationKey] = config;
req.Properties[HttpPropertyKeys.HttpRouteDataKey] = route;
HttpControllerContext context = new HttpControllerContext(config, route, req);