public SiteMapNodeFactory(
            ISiteMapNodeChildStateFactory siteMapNodeChildStateFactory,
            ILocalizationServiceFactory localizationServiceFactory,
            ISiteMapNodePluginProvider pluginProvider,
            IUrlPath urlPath,
            IMvcContextFactory mvcContextFactory
            )
        {
            if (siteMapNodeChildStateFactory == null)
            {
                throw new ArgumentNullException("siteMapNodeChildStateFactory");
            }
            if (localizationServiceFactory == null)
            {
                throw new ArgumentNullException("localizationServiceFactory");
            }
            if (pluginProvider == null)
            {
                throw new ArgumentNullException("pluginProvider");
            }
            if (urlPath == null)
            {
                throw new ArgumentNullException("urlPath");
            }
            if (mvcContextFactory == null)
            {
                throw new ArgumentNullException("mvcContextFactory");
            }

            this.siteMapNodeChildStateFactory = siteMapNodeChildStateFactory;
            this.localizationServiceFactory   = localizationServiceFactory;
            this.pluginProvider    = pluginProvider;
            this.urlPath           = urlPath;
            this.mvcContextFactory = mvcContextFactory;
        }
        public SiteMapNodeFactory(
            ISiteMapNodeChildStateFactory siteMapNodeChildStateFactory,
            ILocalizationServiceFactory localizationServiceFactory,
            ISiteMapNodePluginProvider pluginProvider,
            IUrlPath urlPath,
            IMvcContextFactory mvcContextFactory
            )
        {
            if (siteMapNodeChildStateFactory == null)
                throw new ArgumentNullException("siteMapNodeChildStateFactory");
            if (localizationServiceFactory == null)
                throw new ArgumentNullException("localizationServiceFactory");
            if (pluginProvider == null)
                throw new ArgumentNullException("pluginProvider");
            if (urlPath == null)
                throw new ArgumentNullException("urlPath");
            if (mvcContextFactory == null)
                throw new ArgumentNullException("mvcContextFactory");

            this.siteMapNodeChildStateFactory = siteMapNodeChildStateFactory;
            this.localizationServiceFactory = localizationServiceFactory;
            this.pluginProvider = pluginProvider;
            this.urlPath = urlPath;
            this.mvcContextFactory = mvcContextFactory;
        }
 public HelloController(ILocalizationServiceFactory localizationServiceFactory)
 {
     _localizationServiceFactory = localizationServiceFactory;
 }