Exemple #1
0
        public void ThrowsOnGetDeletedAggregate()
        {
            var aggregateId = SaveTestAggregateWithoutCustomHeaders(_repo, 10);

            var streamName = string.Format("testAggregate-{0}", aggregateId.ToString("N"));

            _connection.DeleteStream(streamName, 11);

            Assert.Throws <AggregateDeletedException>(() => _repo.GetById <TestAggregate>(aggregateId));
        }