コード例 #1
0
 public static IMockProviderService With(this IMockProviderService service, IRestRequest request)
 {
     return(service.With(new ProviderServiceRequest {
         Method = request.Method.ToHttpVerb(),
         Path = "/" + request.Resource,
         Headers = request.Parameters.Where(p => p.Type == ParameterType.HttpHeader).ToDictionary(p => p.Name, p => p.Value.ToString()),
         Body = request.GetRequestBody(),
     }));
 }
コード例 #2
0
 public IMockProviderService With(ProviderServiceRequest request)
 {
     return(_decoratedMockProvider.With(request));
 }