Exemplo n.º 1
0
        public void CommandTest()
        {
            BaseTest();
            string routeKey     = RouteKey.CreateCommandKey("/testcontroller/cmd1");
            var    commandRoute = _commandActionRouteDictionary[routeKey];

            Assert.NotNull(commandRoute);
        }
Exemplo n.º 2
0
        public virtual CommandActionRoute GetCommandRoute(string commandUrl)
        {
            var key = RouteKey.CreateCommandKey(commandUrl);

            if (string.IsNullOrWhiteSpace(key))
            {
                return(null);
            }

            EnsureContainersAreInitialized();
            if (CommandRouteDictionary.ContainsKey(key))
            {
                return(CommandRouteDictionary[key]);
            }

            return(null);
        }