/// <summary> /// /// </summary> /// <param name="other"></param> /// <returns></returns> public override bool Equals(User other) { if (other == null) { return(false); } return(Id == other.Id && string.Equals(Login, other.Login, StringComparison.OrdinalIgnoreCase) && string.Equals(FirstName, other.FirstName, StringComparison.OrdinalIgnoreCase) && string.Equals(LastName, other.LastName, StringComparison.OrdinalIgnoreCase) && string.Equals(Email, other.Email, StringComparison.OrdinalIgnoreCase) && string.Equals(MailNotification, other.MailNotification, StringComparison.OrdinalIgnoreCase) && string.Equals(ApiKey, other.ApiKey, StringComparison.OrdinalIgnoreCase) && AuthenticationModeId == other.AuthenticationModeId && CreatedOn == other.CreatedOn && LastLoginOn == other.LastLoginOn && Status == other.Status && MustChangePassword == other.MustChangePassword && (CustomFields != null ? CustomFields.Equals <IssueCustomField>(other.CustomFields) : other.CustomFields == null) && (Memberships != null ? Memberships.Equals <Membership>(other.Memberships) : other.Memberships == null) && (Groups != null ? Groups.Equals <UserGroup>(other.Groups) : other.Groups == null) && string.Equals(TwoFactorAuthenticationScheme, other.TwoFactorAuthenticationScheme, StringComparison.OrdinalIgnoreCase) && IsAdmin == other.IsAdmin && PasswordChangedOn == other.PasswordChangedOn && UpdatedOn == other.UpdatedOn ); }
/// <summary> /// /// </summary> /// <param name="other"></param> /// <returns></returns> public bool Equals(User other) { if (other == null) { return(false); } return( Id == other.Id && Login.Equals(other.Login) //&& Password.Equals(other.Password) && FirstName.Equals(other.FirstName) && LastName.Equals(other.LastName) && Email.Equals(other.Email) && MailNotification.Equals(other.MailNotification) && (ApiKey != null ? ApiKey.Equals(other.ApiKey) : other.ApiKey == null) && AuthenticationModeId == other.AuthenticationModeId && CreatedOn == other.CreatedOn && LastLoginOn == other.LastLoginOn && Status == other.Status && MustChangePassword == other.MustChangePassword && (CustomFields != null ? CustomFields.Equals <IssueCustomField>(other.CustomFields) : other.CustomFields == null) && (Memberships != null ? Memberships.Equals <Membership>(other.Memberships): other.Memberships == null) && (Groups != null ? Groups.Equals <UserGroup>(other.Groups) : other.Groups == null) ); }