public void ApplyToResponse(HttpResponseMessage response, PipelineOptions pipelineOptions) { StatusAcceptability acceptable = new ExpectStatusNotInRange(400, 599); pipelineOptions.Use <StatusAcceptability>(option => { acceptable = option; }); AssertResponseHasAcceptableStatus(response, acceptable); }
public void ApplyToResponse(HttpResponseMessage response, PipelineOptions pipelineOptions) { StatusAcceptability acceptable = new ExpectStatusNotInRange(400, 599); pipelineOptions.Use<StatusAcceptability>(option => { acceptable = option; }); AssertResponseHasAcceptableStatus(response, acceptable); }