Ejemplo n.º 1
0
        public void OutputCommandWillRollbackTransactionOnError()
        {
            using (ErrorsProcess process = new ErrorsProcess())
            {

            }
        }
Ejemplo n.º 2
0
        public async Task OutputCommandWillRollbackTransactionOnError()
        {
            await EnsureFibonacciTableExists();

            using (ErrorsProcess process = new ErrorsProcess())
            {
            }
        }
Ejemplo n.º 3
0
        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);
            }
        }
Ejemplo n.º 4
0
        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);
            }
        }
Ejemplo n.º 5
0
 public void OutputCommandWillRollbackTransactionOnError()
 {
     using (ErrorsProcess process = new ErrorsProcess())
     {
     }
 }