public bool Equals(RequireRolePolicy other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (RolesRequired.Count() != other.RolesRequired.Count())
     {
         return(false);
     }
     return(RolesRequired.All(role => other.RolesRequired.Contains(role)));
 }
 public bool Equals(RequireRolePolicy other)
 {
     if (ReferenceEquals(null, other)) return false;
     if (RolesRequired.Count() != other.RolesRequired.Count()) return false;
     return RolesRequired.All(role => other.RolesRequired.Contains(role));
 }