public void ShouldClearEvents(FakeEntity entity, string message) { entity.DoSomething(message); entity.ClearUncommittedEvents(); entity.GetUncommittedEvents().Should().BeEmpty(); }
public void ShouldAppendEvent_WhenDoSomething(FakeEntity entity, string message) { entity.DoSomething(message); entity.GetUncommittedEvents() .Should() .SatisfyRespectively(item => item.Should().BeAssignableTo <FakeEvent>()); }