/// <summary> /// /// </summary> /// <param name="other"></param> /// <returns></returns> public bool Equals(Membership other) { if (other == null) { return(false); } return(Id == other.Id && (Project != null ? Project.Equals(other.Project) : other.Project == null) && (Roles != null ? Roles.Equals <MembershipRole>(other.Roles) : other.Roles == null)); }
/// <summary> /// /// </summary> /// <param name="other"></param> /// <returns></returns> public override bool Equals(ProjectMembership other) { if (other == null) { return(false); } return(Id == other.Id && Project.Equals(other.Project) && Roles.Equals <MembershipRole>(other.Roles) && (User != null ? User.Equals(other.User) : other.User == null) && (Group != null ? Group.Equals(other.Group) : other.Group == null)); }