Ejemplo n.º 1
0
        public void ClearsEventsFromAggregateOnceCommitted()
        {
            var aggregateToSave = new TestWoftamAggregate(Guid.NewGuid());

            aggregateToSave.ProduceEvents(10);
            _repo.Save(aggregateToSave);

            Assert.Empty(((IEventSource)aggregateToSave).TakeEvents());
        }