public void BeginTransactionAlreadyStartedError() { using (DataServer database = new UserServer()) { database.BeginTransaction(); database.BeginTransaction(); } }
public void BeginTransaction() { using (DataServer database = new UserServer()) { database.BeginTransaction(); } }
public void HasPendingTransaction() { using (DataServer database = new UserServer()) { Assert.IsFalse(database.HasPendingTransaction()); database.BeginTransaction(); Assert.IsTrue(database.HasPendingTransaction()); } }
private UserServer GetDatabase(Boolean refresh = false) { if (_database.IsNull() || refresh) { if (_database.IsNotNull()) { _database.Dispose(); } _database = new UserServer(); _database.BeginTransaction(); } return(_database); }