public void Configure(NavigationGraph graph)
        {
            var dependency = graph.AllNodes().FirstOrDefault(node => _matcher.Matches(node.Key));
            
            // code was like this for debugging
            if (dependency == null)
            {
                dependency = graph.MenuFor(_matcher.DefaultKey());
            }

            

            _strategy.Apply(dependency, _node);
        }
        public void Configure(NavigationGraph graph)
        {
            var dependency = graph.AllNodes().FirstOrDefault(node => _matcher.Matches(node.Key));

            // code was like this for debugging
            if (dependency == null)
            {
                dependency = graph.MenuFor(_matcher.DefaultKey());
            }



            _strategy.Apply(dependency, _node);
        }
        public IEnumerable <MenuItemToken> MenuFor(StringToken key)
        {
            var chain = _navigation.MenuFor(key);

            return(chain.Select(BuildToken));
        }