Пример #1
0
 public RoleExistsReply RoleExists(RoleExistsRequest request)
 {
     try
     {
         RoleExistsReply response = new RoleExistsReply();
         response.RoleExists = _roles.RoleExists(request.RoleName);
         response.Status     = ActionStatus.OK;
         return(response);
     }
     catch (Exception ex)
     {
         throw ex.NewFault();
     }
 }
Пример #2
0
        public bool RoleExists(string applicationName, string roleName)
        {
            _Provider.ApplicationName = _ApplicationName;

            return(_Provider.RoleExists(roleName));
        }
Пример #3
0
 private static void CreateSpecialRole(RoleProvider roleProvider)
 {
     if (!roleProvider.RoleExists(specialRN))
     {
         roleProvider.CreateRole(specialRN);
         Assert.IsTrue(roleProvider.RoleExists(specialRN));
     }
     else
         Assert.Pass("Special role is already created!");
 }