public Response(Request originalRequest, NameValueCollection nameValueCollection) { OriginalRequest = originalRequest; Container = new Dictionary<string, string>(StringComparer.CurrentCultureIgnoreCase); SetOperation(OriginalRequest.GetOperation()); SignatureKeys = GetSignatureKeys(); AddCollection(nameValueCollection); }
protected virtual NameValueCollection CallWebClientProvider(Request request) { return new WebClientProvider().Send(Endpoint + "/" + request.GetOperation().ToLower(), request.AllToNameValueCollection()); }
/// <summary> /// Stubbed out to Mock the Method. /// </summary> /// <param name="request"></param> /// <returns></returns> protected virtual async Task<NameValueCollection> CallWebClientProviderAsync(Request request) { return await new WebClientProvider().SendAsync(Endpoint + "/" +request.GetOperation().ToLower(), request.AllToNameValueCollection()); }