Example #1
0
        public void CanRetrieveActionRoles()
        {
            ActionWithRoles action = new ActionWithRoles();
            action.ValidationContext = new ValidationContext();
            action.Execute();

            foreach (var role in action.Roles)
                Console.WriteLine(role);
        }
Example #2
0
        public void CanRetrieveActionRoles()
        {
            ActionWithRoles action = new ActionWithRoles();

            action.ValidationContext = new ValidationContext();
            action.Execute();

            foreach (var role in action.Roles)
            {
                Console.WriteLine(role);
            }
        }