public void SetUp()
{
var config =newHttpSelfHostConfiguration("http://localhost:8080");
config.Routes.MapHttpRoute(
"API Default","api/{controller}/{id}",
new{ id =RouteParameter.Optional});
Server=newHttpSelfHostServer(config);
Server.OpenAsync().Wait();
}