示例#1
0
 public void BeginTransactionAlreadyStartedError()
 {
     using (DataServer database = new SpeciesObservationHarvestServer())
     {
         database.BeginTransaction();
         database.BeginTransaction();
     }
 }
示例#2
0
 public void CommitTransaction()
 {
     using (DataServer database = new SpeciesObservationHarvestServer())
     {
         database.BeginTransaction();
         database.CommitTransaction();
     }
 }
示例#3
0
 public void HasPendingTransaction()
 {
     using (DataServer database = new SpeciesObservationHarvestServer())
     {
         Assert.IsFalse(database.HasPendingTransaction());
         database.BeginTransaction();
         Assert.IsTrue(database.HasPendingTransaction());
     }
 }