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 GetPermissionFromControllerForOverridenWorksProperly() { var permission = NavigationItemAttribute.GetPermissionFromController(typeof(DummyController1), "Overridden"); Assert.Equal("More", permission); }