Ejemplo n.º 1
0
        public void CannotHandleChangeFromBaseAggregate()
        {
            // arrange
            var aggregate = new OverridingAggregate();
            var @event    = new SomethingWierdHappened();

            // act
            aggregate.ApplyEvent(@event);

            // assert
            aggregate.Change.Should().BeNull();
        }
Ejemplo n.º 2
0
        public void CannotHandleChangeFromBaseAggregate()
        {
            // arrange
            var aggregate = new OverridingAggregate();
            var @event = new SomethingWierdHappened();

            // act
            aggregate.ApplyEvent(@event);

            // assert
            aggregate.Change.Should().BeNull();
        }