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(), })); }
public IMockProviderService With(ProviderServiceRequest request) { return(_decoratedMockProvider.With(request)); }