A transaction logger that does nothing (ie it doesn't log anything)
Inheritance: ITransactionLog
 public void UpdateAsRolledBack_ShouldNotThrowException()
 {
     //---------------Set up test pack-------------------
     var transactionLogger = new NullTransactionLogger();
     //---------------Assert Precondition----------------
     Assert.IsNotNull(transactionLogger);
     //---------------Execute Test ----------------------
     transactionLogger.UpdateAsRolledBack();
     //---------------Test Result -----------------------
     Assert.IsNotNull(transactionLogger);
 }
 public void TransactionID_ShouldReturnTransactionID()
 {
     //---------------Set up test pack-------------------
     var transactionLogger = new NullTransactionLogger();
     //---------------Assert Precondition----------------
     Assert.IsNotNull(transactionLogger);
     //---------------Execute Test ----------------------
     var transactionID = transactionLogger.TransactionID();
     //---------------Test Result -----------------------
     Assert.IsNotNull(transactionID);
     StringAssert.Contains("NullTransactionLoggerID", transactionID);
 }
        public void Constructor()
        {
            //---------------Set up test pack-------------------
            
            //---------------Assert Precondition----------------

            //---------------Execute Test ----------------------
            var transactionLogger = new NullTransactionLogger();
            //---------------Test Result -----------------------
            Assert.IsNotNull(transactionLogger);
            Assert.IsInstanceOf<ITransactionLog>(transactionLogger, "Should be instance of ITransactionLog");
        }
 public void GetPersistSql_ShouldReturnSqlStatementList()
 {
     //---------------Set up test pack-------------------
     var transactionLogger = new NullTransactionLogger();
     //---------------Assert Precondition----------------
     Assert.IsNotNull(transactionLogger);
     //---------------Execute Test ----------------------
     IEnumerable<ISqlStatement> sqlStatements = transactionLogger.GetPersistSql();
     //---------------Test Result -----------------------
     Assert.IsNotNull(sqlStatements);
     Assert.AreEqual(0, sqlStatements.Count());
 }