public void SetUp()
        {
            _executionMqServer = ContextRegistry.GetContext()["OrderExecutionMqServer"] as OrderExecutionMqServer;
            if (_executionMqServer != null)
            {
                _executionMqServer.Connect();
            }

            //// Initialize Advance Bus
            //_advancedBus = RabbitHutch.CreateBus("host=localhost").Advanced;

            //// Create a admin exchange
            //_adminExchange = _advancedBus.ExchangeDeclare("orderexecution_exchange", ExchangeType.Direct, false, true, false);

            // Create Native Rabbit MQ Bus
            _rabbitMqOrderBus = new ConnectionFactory {
                HostName = "localhost"
            };

            // Create Native Rabbit MQ Connection
            _rabbitMqOrderConnection = _rabbitMqOrderBus.CreateConnection();

            // Open Native Rabbbit MQ Channel
            _rabbitMqOrderChannel = _rabbitMqOrderConnection.CreateModel();
        }
        /// <summary>
        /// Argument Constructor
        /// </summary>
        /// <param name="mqServer">TradeHub Order Execution MQ Server</param>
        /// <param name="messageProcessor"> </param>
        public ApplicationController(OrderExecutionMqServer mqServer, OrderExecutionMessageProcessor messageProcessor)
        {
            _strategiesInfoMap = new ConcurrentDictionary <string, Dictionary <string, ClientMqParameters> >();

            _mqServer         = mqServer;
            _messageProcessor = messageProcessor;

            // Hook Order Execution MQ Server Events
            RegisterMqServerEvents();

            // Hook Order Execution Message Processor Events
            RegisterMessageProcessorEvents();
        }