public void NamedTransactionsGetUnspecifiedIsolationLevel()
        {
            var adapter = new StubAdapterWithTransaction();
            Database db = new Database(adapter);
            db.BeginTransaction("tran name");

            Assert.AreEqual(IsolationLevel.Unspecified, adapter.IsolationLevel);
        }
        public void TransactionsGetExplicitlySetIsolationLevel()
        {
            var adapter = new StubAdapterWithTransaction();
            Database db = new Database(adapter);
            db.BeginTransaction(IsolationLevel.Serializable);

            Assert.AreEqual(IsolationLevel.Serializable, adapter.IsolationLevel);
        }
Exemplo n.º 3
0
        public void NamedTransactionsGetUnspecifiedIsolationLevel()
        {
            var      adapter = new StubAdapterWithTransaction();
            Database db      = new Database(adapter);

            db.BeginTransaction("tran name");

            Assert.AreEqual(IsolationLevel.Unspecified, adapter.IsolationLevel);
        }
Exemplo n.º 4
0
        public void TransactionsGetExplicitlySetIsolationLevel()
        {
            var      adapter = new StubAdapterWithTransaction();
            Database db      = new Database(adapter);

            db.BeginTransaction(IsolationLevel.Serializable);

            Assert.AreEqual(IsolationLevel.Serializable, adapter.IsolationLevel);
        }