public void OutputCommandWillRollbackTransactionOnError()
        {
            using (ErrorsProcess process = new ErrorsProcess())
            {

            }
        }
Exemple #2
0
        public async Task OutputCommandWillRollbackTransactionOnError()
        {
            await EnsureFibonacciTableExists();

            using (ErrorsProcess process = new ErrorsProcess())
            {
            }
        }
        public void WillReportErrorsWhenThrown()
        {
            using (ErrorsProcess process = new ErrorsProcess())
            {
                ICollection <Row> results = new List <Row>();
                process.RegisterLast(new AddToResults(results));

                process.Execute();
                Assert.Equal(process.ThrowOperation.RowsAfterWhichToThrow, results.Count);
                List <Exception> errors = new List <Exception>(process.GetAllErrors());
                Assert.Equal(1, errors.Count);
                Assert.Equal("Failed to execute operation Rhino.Etl.Tests.Errors.ThrowingOperation: problem",
                             errors[0].Message);
            }
        }
        public void WillReportErrorsWhenThrown()
        {
            using (ErrorsProcess process = new ErrorsProcess())
            {
                ICollection<Row> results = new List<Row>();
                process.RegisterLast(new AddToResults(results));

                process.Execute();
                Assert.AreEqual(process.ThrowOperation.RowsAfterWhichToThrow, results.Count);
                List<Exception> errors = new List<Exception>(process.GetAllErrors());
                Assert.AreEqual(1, errors.Count);
                Assert.AreEqual("Failed to execute operation Rhino.Etl.Tests.Errors.ThrowingOperation: problem",
                                errors[0].Message);
            }
        }
 public void OutputCommandWillRollbackTransactionOnError()
 {
     using (ErrorsProcess process = new ErrorsProcess())
     {
     }
 }