public void CanCallDisposeMoreThanOnce() { using (var aggregateStore = new AggregateStore(new Mock <IApplyEvents>().Object, new Mock <IStoreSnapshots>().Object, new Mock <IStoreEvents>().Object)) { aggregateStore.Dispose(); aggregateStore.Dispose(); } }
public void CanCallDisposeMoreThanOnce() { using (var aggregateStore = new AggregateStore(new Mock<IApplyEvents>().Object, new Mock<IStoreSnapshots>().Object, new Mock<IStoreEvents>().Object)) { aggregateStore.Dispose(); aggregateStore.Dispose(); } }