예제 #1
0
        public GivenABatchWasAlreadyStarted()
        {
            _sut = new RedisStore(
                RedisFixture.MockConnectionMultiplexer(RedisFixture.MockRedisBatch().Object),
                ETagFixture.MockETagGenerator());

            _sut.CreateBatch();
        }
예제 #2
0
 public void ThenItShouldThrowAnException_WhenStartingANewBatch()
 {
     Assert.Throws <InvalidOperationException>(() => _sut.CreateBatch());
 }