public void AuthorizateButtons_Ok() { Assert.True(MenuHelper.AuthorizateButtons("admin", "~/Admin/Profiles", "saveTheme")); Assert.False(MenuHelper.AuthorizateButtons("admin", "~/Admin/Profiles", "unitTest")); }
public void User_Ok() { Assert.False(MenuHelper.AuthorizateButtons(new FooHttpContext(), "~/Admin/Profiles1", "saveDisplayName")); Assert.False(MenuHelper.AuthorizateButtons(new FooHttpContext(), "~/Admin/Index", "saveDisplayName")); }