Example #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);
        }
        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);
        }
Example #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);
            }
        }