Ejemplo n.º 1
0
        public void When_receiving_a_stop_message_for_a_connection()
        {
            _configurationCommandHandler.Handle(_configurationCommand);

            //_should_call_stop_for_the_given_connection
            A.CallTo(() => _dispatcher.Shut(CONNECTION_NAME));
        }
        public void When_receiving_an_all_start_message()
        {
            _configurationCommandHandler.Handle(_configurationCommand);

            //_should_call_receive_on_the_dispatcher
            A.CallTo(() => _dispatcher.Receive()).MustHaveHappened();
        }