Beispiel #1
0
        public async System.Threading.Tasks.Task GetSellerStatusErrorAsync()
        {
            SellerCall             call = new SellerCall(client);
            NoRetriesLeftException ex   = await Assert.ThrowsAsync <NoRetriesLeftException>(
                () => call.SellerStatusCheck()
                );

            Assert.IsType <AuthenticationException>(ex.InnerException);
        }
        public static NoRetriesLeftException Factory(int retryCount, System.Exception innerException)
        {
            var exceptionMessage = string.Format("All {0} retry attempts spent. ", retryCount.ToString());
            var exception        = new NoRetriesLeftException(exceptionMessage, innerException)
            {
                RetryCount = retryCount
            };

            return(exception);
        }