예제 #1
0
        public void ShouldSaveToSavePointName()
        {
            var savePointName = "MySavePointName";

            using var target = new SqlTransactionAdapter(transaction.Object);
            target.Save(savePointName);

            transaction.Verify(o => o.Save(savePointName));
        }
예제 #2
0
 public void ThrowAnExceptionWhenSavePointNameIsWhiteSpaceOnSave()
 {
     using var target = new SqlTransactionAdapter(transaction.Object);
     Assert.Throws <ArgumentNullException>(() => target.Save("      "));
 }