public void CorrectlyIdentifiesNonMatchingIds(IThreadSafeTimeEntry timeEntryA, IThreadSafeTimeEntry timeEntryB) { var groupA = new GroupId(timeEntryA); var groupB = new GroupId(timeEntryB); groupA.Equals(groupB).Should().BeFalse(); }
public override bool Equals(object obj) { var other = (DatabaseSearchSequence)obj; if (other == null) { return(false); } if (!Id.Equals(other.Id)) { return(false); } if (!GroupId.Equals(other.GroupId)) { return(false); } if (!Sequence.Equals(other.Sequence)) { return(false); } if (!Scan.Equals(other.Scan)) { return(false); } if (!Score.Equals(other.Score)) { return(false); } return(Score.Equals(other.Score)); }
/// <summary> /// Returns true if GroupMembershipViewModel instances are equal /// </summary> /// <param name="other">Instance of GroupMembershipViewModel to be compared</param> /// <returns>Boolean</returns> public bool Equals(GroupMembershipViewModel other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Active == other.Active || Active.Equals(other.Active) ) && ( GroupId == other.GroupId || GroupId.Equals(other.GroupId) ) && ( UserId == other.UserId || UserId.Equals(other.UserId) ) && ( Id == other.Id || Id != null && Id.Equals(other.Id) )); }
public bool Equals(GroupUserBase input) { if (input == null) { return(false); } return (( GroupId == input.GroupId || (GroupId.Equals(input.GroupId)) ) && ( DestinyUserInfo == input.DestinyUserInfo || (DestinyUserInfo != null && DestinyUserInfo.Equals(input.DestinyUserInfo)) ) && ( BungieNetUserInfo == input.BungieNetUserInfo || (BungieNetUserInfo != null && BungieNetUserInfo.Equals(input.BungieNetUserInfo)) ) && ( JoinDate == input.JoinDate || (JoinDate != null && JoinDate.Equals(input.JoinDate)) )); }
public override bool Equals(object obj) { if (obj == null) { return(false); } if (!(obj is Schedule)) { return(false); } if (this == obj) { return(true); } Schedule s = (Schedule)obj; if (!GroupId.Equals(s.GroupId)) { return(false); } if (!Number.Equals(s.Number)) { return(false); } if (!Day.Equals(s.Day)) { return(false); } return(true); }
public bool Equals(GroupPotentialMember input) { if (input == null) { return(false); } return (( PotentialStatus == input.PotentialStatus || (PotentialStatus != null && PotentialStatus.Equals(input.PotentialStatus)) ) && ( GroupId == input.GroupId || (GroupId.Equals(input.GroupId)) ) && ( DestinyUserInfo == input.DestinyUserInfo || (DestinyUserInfo != null && DestinyUserInfo.Equals(input.DestinyUserInfo)) ) && ( BungieNetUserInfo == input.BungieNetUserInfo || (BungieNetUserInfo != null && BungieNetUserInfo.Equals(input.BungieNetUserInfo)) ) && ( JoinDate == input.JoinDate || (JoinDate != null && JoinDate.Equals(input.JoinDate)) )); }
public bool Equals(GroupOptionalConversation input) { if (input == null) { return(false); } return (( GroupId == input.GroupId || (GroupId.Equals(input.GroupId)) ) && ( ConversationId == input.ConversationId || (ConversationId.Equals(input.ConversationId)) ) && ( ChatEnabled == input.ChatEnabled || (ChatEnabled != null && ChatEnabled.Equals(input.ChatEnabled)) ) && ( ChatName == input.ChatName || (ChatName != null && ChatName.Equals(input.ChatName)) ) && ( ChatSecurity == input.ChatSecurity || (ChatSecurity != null && ChatSecurity.Equals(input.ChatSecurity)) )); }
public bool Equals(Student s) { return(IndexNo.Equals(s.IndexNo) && FirstName.Equals(s.FirstName) && LastName.Equals(s.LastName) && BirthPlace.Equals(s.BirthPlace) && BirthDate.Equals(s.BirthDate) && GroupId.Equals(s.GroupId)); }
/// <summary> /// Compares two objects' values. /// </summary> /// <param name="obj">Other to compare with.</param> /// <returns>True if values are the same, false if not.</returns> public override bool Equals(object obj) { if (obj == null) { return(false); } var other = obj as MSSpectra; if (other == null) { return(false); } if (!GroupId.Equals(other.GroupId)) { return(false); } if (!MsLevel.Equals(other.MsLevel)) { return(false); } if (!PrecursorChargeState.Equals(other.PrecursorChargeState)) { return(false); } if (!PrecursorMz.Equals(other.PrecursorMz)) { return(false); } if (!Net.Equals(other.Net)) { return(false); } if (!Scan.Equals(other.Scan)) { return(false); } if (!TotalIonCurrent.Equals(other.TotalIonCurrent)) { return(false); } if (!CollisionType.Equals(other.CollisionType)) { return(false); } return(true); }
/// <summary> /// Determines whether the specified <see cref="Object" />, is equal to this instance. /// </summary> /// <param name="obj">The <see cref="Object" /> to compare with this instance.</param> /// <returns> /// <c>true</c> if the specified <see cref="Object" /> is equal to this instance; otherwise, <c>false</c>. /// </returns> public override bool Equals(object obj) { if (!(obj is Parameter)) { // ReSharper disable once BaseObjectEqualsIsObjectEquals return(base.Equals(obj)); } var other = (Parameter)obj; return(Guid.Equals(other.Guid) && Name.Equals(other.Name) && IsShared.Equals(other.IsShared) && Description.Equals(other.Description) && (GroupId.Equals(other.GroupId) || GroupName.Equals(other.GroupName))); }
public bool Equals(GroupMemberApplication input) { if (input == null) { return(false); } return (( GroupId == input.GroupId || (GroupId.Equals(input.GroupId)) ) && ( CreationDate == input.CreationDate || (CreationDate != null && CreationDate.Equals(input.CreationDate)) ) && ( ResolveState == input.ResolveState || (ResolveState != null && ResolveState.Equals(input.ResolveState)) ) && ( ResolveDate == input.ResolveDate || (ResolveDate != null && ResolveDate.Equals(input.ResolveDate)) ) && ( ResolvedByMembershipId == input.ResolvedByMembershipId || (ResolvedByMembershipId.Equals(input.ResolvedByMembershipId)) ) && ( RequestMessage == input.RequestMessage || (RequestMessage != null && RequestMessage.Equals(input.RequestMessage)) ) && ( ResolveMessage == input.ResolveMessage || (ResolveMessage != null && ResolveMessage.Equals(input.ResolveMessage)) ) && ( DestinyUserInfo == input.DestinyUserInfo || (DestinyUserInfo != null && DestinyUserInfo.Equals(input.DestinyUserInfo)) ) && ( BungieNetUserInfo == input.BungieNetUserInfo || (BungieNetUserInfo != null && BungieNetUserInfo.Equals(input.BungieNetUserInfo)) )); }
public bool Equals(GroupBan input) { if (input == null) { return(false); } return (( GroupId == input.GroupId || (GroupId.Equals(input.GroupId)) ) && ( LastModifiedBy == input.LastModifiedBy || (LastModifiedBy != null && LastModifiedBy.Equals(input.LastModifiedBy)) ) && ( CreatedBy == input.CreatedBy || (CreatedBy != null && CreatedBy.Equals(input.CreatedBy)) ) && ( DateBanned == input.DateBanned || (DateBanned != null && DateBanned.Equals(input.DateBanned)) ) && ( DateExpires == input.DateExpires || (DateExpires != null && DateExpires.Equals(input.DateExpires)) ) && ( Comment == input.Comment || (Comment != null && Comment.Equals(input.Comment)) ) && ( BungieNetUserInfo == input.BungieNetUserInfo || (BungieNetUserInfo != null && BungieNetUserInfo.Equals(input.BungieNetUserInfo)) ) && ( DestinyUserInfo == input.DestinyUserInfo || (DestinyUserInfo != null && DestinyUserInfo.Equals(input.DestinyUserInfo)) )); }
public override bool Equals(Object obj) { if (obj == null) { return(false); } if (obj == this) { return(true); } if (obj.GetType() != this.GetType()) { return(false); } DependencyInfo other = (DependencyInfo)obj; return((GroupId == null) ? (other.GroupId == null) : GroupId.Equals(other.GroupId) && ((ArtifactId == null) ? (other.ArtifactId == null) : ArtifactId.Equals(other.ArtifactId)) && ((Version == null) ? (other.Version == null) : Version.Equals(other.Version))); }
public bool Equals(GroupMember input) { if (input == null) { return(false); } return (( MemberType == input.MemberType || (MemberType != null && MemberType.Equals(input.MemberType)) ) && ( IsOnline == input.IsOnline || (IsOnline != null && IsOnline.Equals(input.IsOnline)) ) && ( LastOnlineStatusChange == input.LastOnlineStatusChange || (LastOnlineStatusChange.Equals(input.LastOnlineStatusChange)) ) && ( GroupId == input.GroupId || (GroupId.Equals(input.GroupId)) ) && ( DestinyUserInfo == input.DestinyUserInfo || (DestinyUserInfo != null && DestinyUserInfo.Equals(input.DestinyUserInfo)) ) && ( BungieNetUserInfo == input.BungieNetUserInfo || (BungieNetUserInfo != null && BungieNetUserInfo.Equals(input.BungieNetUserInfo)) ) && ( JoinDate == input.JoinDate || (JoinDate != null && JoinDate.Equals(input.JoinDate)) )); }
public bool Equals(FireteamSummary input) { if (input == null) { return(false); } return (( FireteamId == input.FireteamId || (FireteamId.Equals(input.FireteamId)) ) && ( GroupId == input.GroupId || (GroupId.Equals(input.GroupId)) ) && ( Platform == input.Platform || (Platform != null && Platform.Equals(input.Platform)) ) && ( ActivityType == input.ActivityType || (ActivityType.Equals(input.ActivityType)) ) && ( IsImmediate == input.IsImmediate || (IsImmediate != null && IsImmediate.Equals(input.IsImmediate)) ) && ( ScheduledTime == input.ScheduledTime || (ScheduledTime != null && ScheduledTime.Equals(input.ScheduledTime)) ) && ( OwnerMembershipId == input.OwnerMembershipId || (OwnerMembershipId.Equals(input.OwnerMembershipId)) ) && ( PlayerSlotCount == input.PlayerSlotCount || (PlayerSlotCount.Equals(input.PlayerSlotCount)) ) && ( AlternateSlotCount == input.AlternateSlotCount || (AlternateSlotCount.Equals(input.AlternateSlotCount)) ) && ( AvailablePlayerSlotCount == input.AvailablePlayerSlotCount || (AvailablePlayerSlotCount.Equals(input.AvailablePlayerSlotCount)) ) && ( AvailableAlternateSlotCount == input.AvailableAlternateSlotCount || (AvailableAlternateSlotCount.Equals(input.AvailableAlternateSlotCount)) ) && ( Title == input.Title || (Title != null && Title.Equals(input.Title)) ) && ( DateCreated == input.DateCreated || (DateCreated != null && DateCreated.Equals(input.DateCreated)) ) && ( DateModified == input.DateModified || (DateModified != null && DateModified.Equals(input.DateModified)) ) && ( IsPublic == input.IsPublic || (IsPublic != null && IsPublic.Equals(input.IsPublic)) ) && ( Locale == input.Locale || (Locale != null && Locale.Equals(input.Locale)) ) && ( IsValid == input.IsValid || (IsValid != null && IsValid.Equals(input.IsValid)) ) && ( DatePlayerModified == input.DatePlayerModified || (DatePlayerModified != null && DatePlayerModified.Equals(input.DatePlayerModified)) ) && ( TitleBeforeModeration == input.TitleBeforeModeration || (TitleBeforeModeration != null && TitleBeforeModeration.Equals(input.TitleBeforeModeration)) )); }
public bool Equals(GroupV2 input) { if (input == null) { return(false); } return (( GroupId == input.GroupId || (GroupId.Equals(input.GroupId)) ) && ( Name == input.Name || (Name != null && Name.Equals(input.Name)) ) && ( GroupType == input.GroupType || (GroupType != null && GroupType.Equals(input.GroupType)) ) && ( MembershipIdCreated == input.MembershipIdCreated || (MembershipIdCreated.Equals(input.MembershipIdCreated)) ) && ( CreationDate == input.CreationDate || (CreationDate != null && CreationDate.Equals(input.CreationDate)) ) && ( ModificationDate == input.ModificationDate || (ModificationDate != null && ModificationDate.Equals(input.ModificationDate)) ) && ( About == input.About || (About != null && About.Equals(input.About)) ) && ( Tags == input.Tags || (Tags != null && Tags.SequenceEqual(input.Tags)) ) && ( MemberCount == input.MemberCount || (MemberCount.Equals(input.MemberCount)) ) && ( IsPublic == input.IsPublic || (IsPublic != null && IsPublic.Equals(input.IsPublic)) ) && ( IsPublicTopicAdminOnly == input.IsPublicTopicAdminOnly || (IsPublicTopicAdminOnly != null && IsPublicTopicAdminOnly.Equals(input.IsPublicTopicAdminOnly)) ) && ( Motto == input.Motto || (Motto != null && Motto.Equals(input.Motto)) ) && ( AllowChat == input.AllowChat || (AllowChat != null && AllowChat.Equals(input.AllowChat)) ) && ( IsDefaultPostPublic == input.IsDefaultPostPublic || (IsDefaultPostPublic != null && IsDefaultPostPublic.Equals(input.IsDefaultPostPublic)) ) && ( ChatSecurity == input.ChatSecurity || (ChatSecurity != null && ChatSecurity.Equals(input.ChatSecurity)) ) && ( Locale == input.Locale || (Locale != null && Locale.Equals(input.Locale)) ) && ( AvatarImageIndex == input.AvatarImageIndex || (AvatarImageIndex.Equals(input.AvatarImageIndex)) ) && ( Homepage == input.Homepage || (Homepage != null && Homepage.Equals(input.Homepage)) ) && ( MembershipOption == input.MembershipOption || (MembershipOption != null && MembershipOption.Equals(input.MembershipOption)) ) && ( DefaultPublicity == input.DefaultPublicity || (DefaultPublicity != null && DefaultPublicity.Equals(input.DefaultPublicity)) ) && ( Theme == input.Theme || (Theme != null && Theme.Equals(input.Theme)) ) && ( BannerPath == input.BannerPath || (BannerPath != null && BannerPath.Equals(input.BannerPath)) ) && ( AvatarPath == input.AvatarPath || (AvatarPath != null && AvatarPath.Equals(input.AvatarPath)) ) && ( ConversationId == input.ConversationId || (ConversationId.Equals(input.ConversationId)) ) && ( EnableInvitationMessagingForAdmins == input.EnableInvitationMessagingForAdmins || (EnableInvitationMessagingForAdmins != null && EnableInvitationMessagingForAdmins.Equals(input.EnableInvitationMessagingForAdmins)) ) && ( BanExpireDate == input.BanExpireDate || (BanExpireDate != null && BanExpireDate.Equals(input.BanExpireDate)) ) && ( Features == input.Features || (Features != null && Features.Equals(input.Features)) ) && ( ClanInfo == input.ClanInfo || (ClanInfo != null && ClanInfo.Equals(input.ClanInfo)) )); }
public bool Equals(GroupV2Card input) { if (input == null) { return(false); } return (( GroupId == input.GroupId || (GroupId.Equals(input.GroupId)) ) && ( Name == input.Name || (Name != null && Name.Equals(input.Name)) ) && ( GroupType == input.GroupType || (GroupType != null && GroupType.Equals(input.GroupType)) ) && ( CreationDate == input.CreationDate || (CreationDate != null && CreationDate.Equals(input.CreationDate)) ) && ( About == input.About || (About != null && About.Equals(input.About)) ) && ( Motto == input.Motto || (Motto != null && Motto.Equals(input.Motto)) ) && ( MemberCount == input.MemberCount || (MemberCount.Equals(input.MemberCount)) ) && ( Locale == input.Locale || (Locale != null && Locale.Equals(input.Locale)) ) && ( MembershipOption == input.MembershipOption || (MembershipOption != null && MembershipOption.Equals(input.MembershipOption)) ) && ( Capabilities == input.Capabilities || (Capabilities != null && Capabilities.Equals(input.Capabilities)) ) && ( ClanInfo == input.ClanInfo || (ClanInfo != null && ClanInfo.Equals(input.ClanInfo)) ) && ( AvatarPath == input.AvatarPath || (AvatarPath != null && AvatarPath.Equals(input.AvatarPath)) ) && ( Theme == input.Theme || (Theme != null && Theme.Equals(input.Theme)) )); }