public void ConsumerClosed_WhenStmConsumedState_DoesNotThrow(EventStreamConsumerStateMachine stm, int eventCount) { Receive(stm, eventCount); Consume(stm); stm.ConsumerClosed(); }
public void ConsumingStarted_WhenStmInClosedState_Throws(EventStreamConsumerStateMachine stm) { stm.ConsumerClosed(); Assert.Throws <InvalidOperationException>(() => stm.ConsumingStarted()); }
public void ReceivingCompleted_WhenStmInClosedState_Throws(EventStreamConsumerStateMachine stm, int eventCount) { stm.ConsumerClosed(); Assert.Throws <InvalidOperationException>(() => stm.ReceivingCompleted(eventCount)); }
public void ConsumerClosed_WhenStmInInitialState_DoesNotThrow(EventStreamConsumerStateMachine stm) { stm.ConsumerClosed(); }