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; } }
public OrderTransaction() { FakeDatabaseTransaction = new FakeDatabaseTransaction(FakeBookingSystem.Database); }