示例#1
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);
        }
示例#2
0
        public void PageNavigationInfoNameIsSet()
        {
            var info = new PageNavigationInfo();

            Assert.Null(info.Name);

            info.Name = "MainPage";

            Assert.NotNull(info.Name);
        }
示例#3
0
        public void PageNavigationInfoTypeIsSet()
        {
            var info = new PageNavigationInfo();

            Assert.Null(info.Type);

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

            Assert.Equal(info.Type, type);
        }
示例#4
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);
            }
        }