public InMemoryHttpServer(string baseUrl, IApplicationData unitOfWork) { this.baseUrl = baseUrl; var config = new HttpConfiguration(); this.AddHttpRoutes(config.Routes); config.IncludeErrorDetailPolicy = IncludeErrorDetailPolicy.Always; var resolver = new TestBugsDependencyResolver(); resolver.UnitOfWork = unitOfWork; config.DependencyResolver = resolver; var server = new HttpServer(config); this.client = new HttpClient(server); }
public InMemoryHttpServer(string baseUrl, IApplicationData unitOfWork) { this.baseUrl = baseUrl; var config = new HttpConfiguration(); this.AddHttpRoutes(config.Routes); config.IncludeErrorDetailPolicy = IncludeErrorDetailPolicy.Always; var resolver = new TestBugsDependencyResolver(); resolver.UnitOfWork = unitOfWork; config.DependencyResolver = resolver; var server = new HttpServer(config); this.client = new HttpClient(server); }