public void MarkAsCommitted_OnCreatedAggregate_ShouldNotContainUncommitted()
        {
            // Arrange
            EventAggregate eventAggregate = new FakeEventAggregate(Guid.NewGuid());

            // Act
            eventAggregate.MarkAsCommitted();
            IEnumerable <Event <Guid> > uncommitted = eventAggregate.GetUncommitted();

            // Assert
            Assert.Empty(uncommitted);
        }
        public void GetUncommitted_OnCreatedAggregate_ShouldReturnCollection()
        {
            // Arrange
            EventAggregate eventAggregate = new FakeEventAggregate(Guid.NewGuid());

            // Act
            IEnumerable <Event <Guid> > result = eventAggregate.GetUncommitted();

            // Assert
            Assert.NotNull(result);
            Assert.NotEmpty(result);
        }