private HttpResponseMessage RequestSingleProject(string name) { var uri = "http://localhost/api/projects/" + name; var ctrler = new ProjectsController { Configuration = new HttpConfiguration(), Request = new HttpRequestMessage(), ActionContext = ContextUtil.CreateActionContext(ContextUtil.CreateControllerContext(request: new HttpRequestMessage(HttpMethod.Get, uri))) }; return(ctrler.FindSingleProject(name).Result); }