Beispiel #1
0
 public void BeginTransactionAlreadyStartedError()
 {
     using (DataServer database = new ReferenceServer())
     {
         database.BeginTransaction();
         database.BeginTransaction();
     }
 }
Beispiel #2
0
 public void BeginTransaction()
 {
     using (DataServer database = new ReferenceServer())
     {
         database.BeginTransaction();
     }
 }
Beispiel #3
0
 public void HasPendingTransaction()
 {
     using (DataServer database = new ReferenceServer())
     {
         Assert.IsFalse(database.HasPendingTransaction());
         database.BeginTransaction();
         Assert.IsTrue(database.HasPendingTransaction());
     }
 }
Beispiel #4
0
        private ReferenceServer GetDatabase(Boolean refresh = false)
        {
            if (_database.IsNull() || refresh)
            {
                if (_database.IsNotNull())
                {
                    _database.Dispose();
                }

                _database = new ReferenceServer();
                _database.BeginTransaction();
            }

            return(_database);
        }