public void When_raising_null_event_then_should_have_no_uncommitted_events()
        {
            var aggregate = new Aggregate("id");

            aggregate.CommandThatDoesNothing();

            var uncommittedEvents = ((IAggregate)aggregate).TakeUncommittedEvents();

            uncommittedEvents.Count.Should().Be(0);
        }
        public void When_raising_null_event_then_should_have_no_uncommitted_events()
        {
            var aggregate = new Aggregate("id");
            aggregate.CommandThatDoesNothing();

            var uncommittedEvents = ((IAggregate)aggregate).TakeUncommittedEvents();

            uncommittedEvents.Count.Should().Be(0);
        }