public InMemoryHttpServer(string baseUrl, IEnumerable<Route> routes) { this.routes = routes; this.baseUrl = baseUrl; var config = new HttpConfiguration(); this.AddHttpRoutes(config.Routes); config.IncludeErrorDetailPolicy = IncludeErrorDetailPolicy.Always; var server = new HttpServer(config); this.client = new HttpClient(server); }