public void CommandTest() { BaseTest(); string routeKey = RouteKey.CreateCommandKey("/testcontroller/cmd1"); var commandRoute = _commandActionRouteDictionary[routeKey]; Assert.NotNull(commandRoute); }
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); }