public void ConsumingCompleted_WhenStmInEventsReceivedState_Throws(EventStreamConsumerStateMachine stm, int eventCount)
        {
            Receive(stm, eventCount);

            Assert.Throws <InvalidOperationException>(() => stm.ConsumingCompleted());
        }
 private static void Consume(EventStreamConsumerStateMachine stm)
 {
     stm.ConsumingStarted();
     stm.ConsumingCompleted();
 }
 public void ConsumingCompleted_WhenStmInInitialState_Throws(EventStreamConsumerStateMachine stm)
 {
     Assert.Throws <InvalidOperationException>(() => stm.ConsumingCompleted());
 }