예제 #1
0
        public void AddDomainEvent_SingleDomainEvent_ShouldNotBeEmpty()
        {
            // Arrange
            var entity      = new MockEntity();
            var domainEvent = new MockDomainEvent();

            // Act
            entity.AddDomainEvent(domainEvent);

            // Assert
            entity.DomainEvents.Should().NotBeEmpty();
        }