示例#1
0
        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();
 }
示例#3
0
 public void TestSetup()
 {
     criterion = new AcceptNonRetriableCriterion();
 }