public void TearDown() { this.transaction.Rollback(); this.useCurrentTransactionDataStoreDisposable.Dispose(); this.useCurrentTransactionDataStoreDisposable = null; this.transaction = null; this.dataStore = null; }
public void SetUp() { this.dataStore = new InMemoryDataStore(); this.transaction = this.dataStore.BeginTransaction(); this.useCurrentTransactionDataStoreDisposable = this.dataStore.CurrentTransactionDataStore(); }