Exemple #1
0
 public void Dispose()
 {
     // Note dispose pattern of checking for null first,
     // to ensure Dispose() is not called twice
     if (FakeDatabaseTransaction != null)
     {
         FakeDatabaseTransaction.Dispose();
         FakeDatabaseTransaction = null;
     }
 }
Exemple #2
0
 public OrderTransaction()
 {
     FakeDatabaseTransaction = new FakeDatabaseTransaction(FakeBookingSystem.Database);
 }