public void Should_accept_an_error_response_with_custom_dont_retry_header() { criterion = new AcceptNonRetriableCriterion("custom-name"); var response = new Response(ResponseCode.ServiceUnavailable, headers: Headers.Empty.Set("custom-name", "")); criterion.Decide(response).Should().Be(ResponseVerdict.Accept); }
public void SetUp() { criterion = new AcceptNonRetriableCriterion(); }
public void TestSetup() { criterion = new AcceptNonRetriableCriterion(); }