예제 #1
0
        public void ShouldClearEvents(FakeEntity entity, string message)
        {
            entity.DoSomething(message);

            entity.ClearUncommittedEvents();

            entity.GetUncommittedEvents().Should().BeEmpty();
        }
예제 #2
0
        public void ShouldAppendEvent_WhenDoSomething(FakeEntity entity, string message)
        {
            entity.DoSomething(message);

            entity.GetUncommittedEvents()
            .Should()
            .SatisfyRespectively(item => item.Should().BeAssignableTo <FakeEvent>());
        }