public void An_insert_concurrency_exception_wrapped_in_an_exception_is_a_concurrency_exception() { var exception = new AggregateException( new DataException("Cannot insert duplicate key")); exception.IsConcurrencyException().Should().BeTrue(); }
public void An_insert_concurrency_exception_nested_deep_in_other_exceptions_is_a_concurrency_exception2() { var exception = new AggregateException( new AggregateException( new DataException("Cannot insert duplicate key"))); exception.IsConcurrencyException().Should().BeTrue(); }