Detects the exceptions caused by SQL Azure transient failures.
Beispiel #1
0
 public void ShouldRetryOn_returns_false_for_exception_nested_in_UpdateException()
 {
     Assert.False(SqlAzureRetriableExceptionDetector.ShouldRetryOn(new UpdateException("", new TimeoutException())));
 }
Beispiel #2
0
 public void ShouldRetryOn_returns_true_for_TimeoutException()
 {
     Assert.True(SqlAzureRetriableExceptionDetector.ShouldRetryOn(new TimeoutException()));
 }
Beispiel #3
0
 public void ShouldRetryOn_returns_false_for_null()
 {
     Assert.False(SqlAzureRetriableExceptionDetector.ShouldRetryOn(null));
 }
Beispiel #4
0
 public void ShouldRetryOn_returns_false_for_non_transient_exception()
 {
     Assert.False(SqlAzureRetriableExceptionDetector.ShouldRetryOn(new EntityException()));
 }
Beispiel #5
0
 /// <inheritdoc/>
 protected override bool ShouldRetryOn(Exception exception)
 {
     return(SqlAzureRetriableExceptionDetector.ShouldRetryOn(exception));
 }