I'm trying to figure out whether it's possible to use custom HTTP client in integration tests?
Instead of getting client instance from TestServer
Client = Server.CreateClient()
to use my own implementation. Smthng like:
Client = new DSClient(Server.BaseAddress.AbsoluteUri, Credential);
When I do so i'm constantly getting 404. WAIDW?
Server = new TestServer(webHostBuilder); TestClient = Server.CreateClient(); Client = new DSClient(TestClient);Had to modify DSClient class with new constructor, but it works. Thanks