public void GetEvents_Success_Should_ReturnEventsOfAggregateRoot_Detail_KeyAggregateRoot() { var expCount = 0; var testAggregateRoot = new TestIntAggregateRoot(); var events = testAggregateRoot.GetEvents(); events.Should().HaveCount(expCount); }
public void AddEvent_Success_Should_ReturnEventsOfAggregateRoot_Detail_KeyAggregateRoot() { var expCount = 1; var testAggregateRoot = new TestIntAggregateRoot(); testAggregateRoot.AddEvent(new EventInformation(new object(), false)); var events = testAggregateRoot.GetEvents(); events.Should().HaveCount(expCount); }