private HttpClient GetHttpClientWithHmacAutenticatedAppsOption(IDictionary <string, string> hmacAuthenticatedApps, string appId, string apiKey) { var factory = new TestWebApplicationFactory(o => { o.HmacAuthenticatedApps = hmacAuthenticatedApps; }); return(factory.CreateDefaultClient(new ApiKeyDelegatingHandler(appId, apiKey))); }
private HttpClient GetHttpClient(IDictionary <string, string> hmacAuthenticatedApps, string appId, string apiKey) { var factory = new TestWebApplicationFactory(o => { o.AuthorizationProvider = new MemoryHmacAuthenticationProvider(hmacAuthenticatedApps); }); return(factory.CreateDefaultClient(new ApiKeyDelegatingHandler(appId, apiKey))); }