public void ReturnsFalseIfResponseStatusBelow500OrWhitelisted(Exception e, HttpStatusCode status)
            {
                var response = new HttpResponseMessage(status);
                var result   = RetryWithExponentialBackoff.IsTransientError(e, response);

                Assert.False(result);
            }
            public void ReturnsFalseIfNotCorrectExceptionType()
            {
                var e      = new Exception();
                var result = RetryWithExponentialBackoff.IsTransientError(e, null);

                Assert.False(result);
            }
            public void ReturnsTrueIfResponseStatusAbove500(Exception e, HttpStatusCode status)
            {
                var response = new HttpResponseMessage(status);
                var result   = RetryWithExponentialBackoff.IsTransientError(e, response);

                Assert.True(result);
            }
            public void ReturnsTrueIfResponseNull(Exception e)
            {
                var result = RetryWithExponentialBackoff.IsTransientError(e, null);

                Assert.True(result);
            }