public GivenABatchWasAlreadyStarted() { _sut = new RedisStore( RedisFixture.MockConnectionMultiplexer(RedisFixture.MockRedisBatch().Object), ETagFixture.MockETagGenerator()); _sut.CreateBatch(); }
public void ThenItShouldThrowAnException_WhenStartingANewBatch() { Assert.Throws <InvalidOperationException>(() => _sut.CreateBatch()); }