Beispiel #1
0
        public override bool Equals(object obj)
        {
            var other = obj as IdentityResourceModel;

            if (other == null)
            {
                return(false);
            }

            var result = UserClaims.SafeListEquals(other.UserClaims) &&
                         Description.SafeEquals(other.Description) &&
                         DisplayName.SafeEquals(other.DisplayName) &&
                         Enabled.SafeEquals(other.Enabled) &&
                         Emphasize.SafeEquals(other.Emphasize) &&
                         Required.SafeEquals(other.Required) &&
                         ShowInDiscoveryDocument.SafeEquals(other.ShowInDiscoveryDocument);

            return(result);
        }
        public override bool Equals(object obj)
        {
            var other = obj as ApiResourceModel;

            if (other == null)
            {
                return(false);
            }


            var result = UserClaims.SafeListEquals(other.UserClaims) &&
                         ApiSecrets.SafeListEquals(other.ApiSecrets) &&
                         Scopes.SafeListEquals(other.Scopes) &&
                         Description.SafeEquals(other.Description) &&
                         DisplayName.SafeEquals(other.DisplayName) &&
                         Enabled.SafeEquals(other.Enabled) &&
                         Name.SafeEquals(other.Name) &&
                         Description.SafeEquals(other.Description);

            return(result);
        }