public Response(Request originalRequest, NameValueCollection nameValueCollection)
 {
     OriginalRequest = originalRequest;
     Container = new Dictionary<string, string>(StringComparer.CurrentCultureIgnoreCase);
     SetOperation(OriginalRequest.GetOperation());
     SignatureKeys = GetSignatureKeys();
     AddCollection(nameValueCollection);
 }
Example #2
0
 protected virtual NameValueCollection CallWebClientProvider(Request request)
 {
     return new WebClientProvider().Send(Endpoint + "/" + request.GetOperation().ToLower(), request.AllToNameValueCollection());
 }
Example #3
0
 /// <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());
     
 }