コード例 #1
0
        public void AggregateShouldCreateEventWhenInstanciated()
        {
            var aggregate = new TestAggregate(Guid.NewGuid(), String.Empty);

            aggregate.GetUncommittedChanges().Count().Should().BeGreaterThan(0);
            aggregate.GetUncommittedChanges().FirstOrDefault().EventName.Should().Be("TestAggregateCreatedEvent");
        }