public void GetPermissionFromControllerForTypeWorksProperly()
        {
            var permission1 = NavigationItemAttribute.GetPermissionFromController(typeof(DummyController1), "Index");

            Assert.Equal("Admin", permission1);

            var permission2 = NavigationItemAttribute.GetPermissionFromController(typeof(DummyController1), "Another");

            Assert.Equal("Admin", permission2);
        }
        public void GetUrlFromControllerForDefaultActionWorksProperly()
        {
            var urlIndex = NavigationItemAttribute.GetUrlFromController(typeof(DummyController1), "Index");

            Assert.Equal("~/Dummy", urlIndex);
        }
        public void GetPermissionFromControllerForOverridenWorksProperly()
        {
            var permission = NavigationItemAttribute.GetPermissionFromController(typeof(DummyController1), "Overridden");

            Assert.Equal("More", permission);
        }
        public void GetUrlFromControllerForRoutedActionWorksProperly()
        {
            var urlRooted = NavigationItemAttribute.GetUrlFromController(typeof(DummyController1), "Rooted");

            Assert.Equal("~/Dummy2", urlRooted);
        }
        public void GetUrlFromControllerForOverriddenActionWorksProperly()
        {
            var urlOverriden = NavigationItemAttribute.GetUrlFromController(typeof(DummyController1), "Overridden");

            Assert.Equal("~/Dummy/Some", urlOverriden);
        }