public Router CreateRouter()
        {
            var router = new SelfMatchingPagesRouter();

            router.RegisterDerivedPages <LinnworksPageBase>();
            return(router);
        }
Ejemplo n.º 2
0
        public Router createRouter()
        {
            var router = new SelfMatchingPagesRouter();

            router.RegisterPage <PageWithWidget>(); // RegisterDerivedPages<PageWithWidget>();
            return(router);
        }
Ejemplo n.º 3
0
    public void CompareTest()
    {
        // .Arrange
        var router = new SelfMatchingPagesRouter();

        // .Act
        router.RegisterPage <TestPage1>();
        router.RegisterPage <TestPage2>();

        // .Assert
        var sortedPages = router.GetSortedPages();

        Assert.AreEqual(typeof(TestPage2), sortedPages[0].GetType());
        Assert.AreEqual(typeof(TestPage1), sortedPages[1].GetType());
    }