public void PageNavigationInfoNameIsSet()
        {
            var info = new PageNavigationInfo();

            Assert.Null(info.Name);

            info.Name = "MainPage";

            Assert.NotNull(info.Name);
        }
        public void PageNavigationInfoTypeIsSet()
        {
            var info = new PageNavigationInfo();

            Assert.Null(info.Type);

            var type = typeof(PageMock);
            info.Type = type;

            Assert.Equal(info.Type, type);
        }
Exemple #3
0
        public static void Register(string name, Type pageType)
        {
            var info = new PageNavigationInfo();

            info.Name = name;
            info.Type = pageType;

            if (!_pageRegistrationCache.ContainsKey(name))
            {
                _pageRegistrationCache.Add(name, info);
            }
        }