public Task ExecuteAsync(TContext context, TResult result, CancellationToken cancellationToken)
        {
            result.Exception = new GenericADOException(
                string.Empty,
                ExceptionCreator.Create(
                    typeof(SqlException),
                    @"Violation of UNIQUE KEY constraint 'FK_SomeIndex'. Cannot insert duplicate key in object 'edfi.SomeTable'."));

            return(Task.CompletedTask);
        }
        public Task ExecuteAsync(TContext context, TResult result, CancellationToken cancellationToken)
        {
            result.Exception = new GenericADOException(
                string.Empty,
                ExceptionCreator.Create(
                    typeof(SqlException),
                    @"The INSERT statement conflicted with the FOREIGN KEY constraint ""FK_SomeForeignKey"". The conflict occurred in database ""DB_NAME"", table ""schema.TableName"", column 'ColumnName'."));

            return(Task.CompletedTask);
        }
        public Task ExecuteAsync(TContext context, TResult result, CancellationToken cancellationToken)
        {
            result.Exception = ExceptionCreator.Create(typeof(TException), "Exception for testing");

            return(Task.CompletedTask);
        }