public void Start() { try { var httpConfig = new HttpConfiguration(); var apiConfig = new ApiApplication(httpConfig); apiConfig.Configure(); _server = new HttpServer(httpConfig); } catch (Exception e) { Console.WriteLine("Could not create server: {0}", e); Assert.Fail("Could not create server: {0}", e); } }
protected void Application_Start(object sender, EventArgs e) { WebApiConfig.Configure(); }