public ApiRequester( IServiceUriBuilder serviceUriBuilder, IAuthDataRetriever authDataRetriever, IApiEndpointFactory apiEndpointFactory ) { _serviceUriBuilder = serviceUriBuilder; _authDataRetriever = authDataRetriever; _apiEndpointFactory = apiEndpointFactory; }
private void SetRequester(IApiEndpoint apiEndpoint, IAuthDataRetriever authDataRetriever = null) { var testCookie = new AuthData { CookieKey = CookieName, CookieValue = CookieValue, CookiePath = CookiePath, CookieDomain = CookieDomain }; var testCookieRetriever = authDataRetriever ?? new TestAuthDataRetriever(testCookie); _requester = new ApiRequester(new ExactUrlServiceUrlBuilder(), testCookieRetriever, new TestApiEndpiontFactory(apiEndpoint)); }