Ejemplo n.º 1
0
        public void SetEventVersionToAggregateVersion()
        {
            var @event = new TestDomainEvent();

            _aggregateRoot.ApplyEvent(@event);

            @event.Version.Should().Be(_aggregateRoot.Version);
        }
 private void Handle(TestDomainEvent @event)
 {
     TestDomainEventHandled = true;
 }