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