public void ShouldApplyDomainEvent() { //Given var aggregateRoot = new TestAggregateRoot(Guid.NewGuid()); Guid changeId = Guid.NewGuid(); aggregateRoot.ChangeMe(changeId); aggregateRoot.HasHandledChangeId(changeId).Should().BeTrue(); }
public void ShouldApplyDomainEvent() { //Given var aggregateRoot = new TestAggregateRoot(Guid.NewGuid()); Guid changeId = Guid.NewGuid(); aggregateRoot.ChangeMe(changeId); aggregateRoot.HasHandledChangeId(changeId).Should().BeTrue(); }