public async Task setup_scenario() { var throttleManager = new StubThrottleManager { Sync = new StubThrottleSync(ConcurrentRequests) }; _expectedResponse = new HttpResponseMessage(HttpStatusCode.Accepted); var baseHttpClient = new StubHttpClient(_expectedResponse); var configuration = new ThrottlingConfiguration { ThrottlePolicy = "default" }; var httpClient = baseHttpClient.AddThrottling(configuration, throttleManager); _actualResponse = await httpClient.GetAsync("/ping"); }