public void OnCommandRequest_should_error_if_unknown_component_id_received()
 {
     using (var wrappedOp =
                WorkerOpFactory.CreateCommandRequestOp(InvalidComponentId, TestCommandIndex, TestCommandRequestId))
     {
         Assert.Throws <UnknownComponentIdException>(() => { receiveSystem.OnCommandRequest(wrappedOp.Op); });
     }
 }
        public void OnCommandRequest_should_be_delegated_to_correct_dispatcher()
        {
            using (var wrappedOp =
                       WorkerOpFactory.CreateCommandRequestOp(FirstTestComponentId, TestCommandIndex, TestCommandRequestId))
            {
                receiveSystem.OnCommandRequest(wrappedOp.Op);
            }

            Assert.IsTrue(firstComponentDispatcher.HasCommandRequestReceived);
            Assert.IsFalse(secondComponentDispatcher.HasCommandRequestReceived);
        }