public bool Equals(DestinyProfileTransitoryPartyMember input) { if (input == null) { return(false); } return (( MembershipId == input.MembershipId || (MembershipId.Equals(input.MembershipId)) ) && ( EmblemHash == input.EmblemHash || (EmblemHash.Equals(input.EmblemHash)) ) && ( DisplayName == input.DisplayName || (DisplayName != null && DisplayName.Equals(input.DisplayName)) ) && ( Status == input.Status || (Status != null && Status.Equals(input.Status)) )); }
public void Handle(MembershipStarted @event) { var account = new Account(MembershipId.Parse(@event.MembershipId)); account.Entries.AddMonthlyEntries(12, Money.Parse(@event.InitialFee), dateTimeProvider); repository.Add(account); }
public bool Equals(HardLinkedUserMembership input) { if (input == null) { return(false); } return (( MembershipType == input.MembershipType || (MembershipType != null && MembershipType.Equals(input.MembershipType)) ) && ( MembershipId == input.MembershipId || (MembershipId.Equals(input.MembershipId)) ) && ( CrossSaveOverriddenType == input.CrossSaveOverriddenType || (CrossSaveOverriddenType != null && CrossSaveOverriddenType.Equals(input.CrossSaveOverriddenType)) ) && ( CrossSaveOverriddenMembershipId == input.CrossSaveOverriddenMembershipId || (CrossSaveOverriddenMembershipId.Equals(input.CrossSaveOverriddenMembershipId)) )); }
public bool Equals(UserMembership input) { if (input == null) { return(false); } return (( MembershipType == input.MembershipType || (MembershipType != null && MembershipType.Equals(input.MembershipType)) ) && ( MembershipId == input.MembershipId || (MembershipId.Equals(input.MembershipId)) ) && ( DisplayName == input.DisplayName || (DisplayName != null && DisplayName.Equals(input.DisplayName)) ) && ( BungieGlobalDisplayName == input.BungieGlobalDisplayName || (BungieGlobalDisplayName != null && BungieGlobalDisplayName.Equals(input.BungieGlobalDisplayName)) ) && ( BungieGlobalDisplayNameCode == input.BungieGlobalDisplayNameCode || (BungieGlobalDisplayNameCode.Equals(input.BungieGlobalDisplayNameCode)) )); }
public override int GetHashCode() { int hash = 13; hash += (hash * 43) + MembershipId.GetHashCode(); return(hash); }
public bool Equals(FireteamUserInfoCard input) { if (input == null) { return(false); } return (( FireteamDisplayName == input.FireteamDisplayName || (FireteamDisplayName != null && FireteamDisplayName.Equals(input.FireteamDisplayName)) ) && ( FireteamMembershipType == input.FireteamMembershipType || (FireteamMembershipType != null && FireteamMembershipType.Equals(input.FireteamMembershipType)) ) && ( SupplementalDisplayName == input.SupplementalDisplayName || (SupplementalDisplayName != null && SupplementalDisplayName.Equals(input.SupplementalDisplayName)) ) && ( IconPath == input.IconPath || (IconPath != null && IconPath.Equals(input.IconPath)) ) && ( CrossSaveOverride == input.CrossSaveOverride || (CrossSaveOverride != null && CrossSaveOverride.Equals(input.CrossSaveOverride)) ) && ( ApplicableMembershipTypes == input.ApplicableMembershipTypes || (ApplicableMembershipTypes != null && ApplicableMembershipTypes.SequenceEqual(input.ApplicableMembershipTypes)) ) && ( IsPublic == input.IsPublic || (IsPublic != null && IsPublic.Equals(input.IsPublic)) ) && ( MembershipType == input.MembershipType || (MembershipType != null && MembershipType.Equals(input.MembershipType)) ) && ( MembershipId == input.MembershipId || (MembershipId.Equals(input.MembershipId)) ) && ( DisplayName == input.DisplayName || (DisplayName != null && DisplayName.Equals(input.DisplayName)) ) && ( BungieGlobalDisplayName == input.BungieGlobalDisplayName || (BungieGlobalDisplayName != null && BungieGlobalDisplayName.Equals(input.BungieGlobalDisplayName)) ) && ( BungieGlobalDisplayNameCode == input.BungieGlobalDisplayNameCode || (BungieGlobalDisplayNameCode.Equals(input.BungieGlobalDisplayNameCode)) )); }
public void ThenTheAccountForTheMembershipShouldHaveTheFollowingDebits(int id, Table table) { var account = repository.GetById <Account>(MembershipId.Parse(id)); for (int index = 0; index < table.RowCount; index++) { AccountEntry accountEntry = account.Entries.ElementAt(index); accountEntry.ExpectedPaymentOn.Should().Be(DateTime.Parse(table.Rows[index][0])); accountEntry.Value.Should().Be(Money.Parse(Decimal.Parse(table.Rows[index][1]))); } account.Should().NotBeNull(); }
public bool Equals(CrossSaveUserMembership input) { if (input == null) { return(false); } return (( CrossSaveOverride == input.CrossSaveOverride || (CrossSaveOverride != null && CrossSaveOverride.Equals(input.CrossSaveOverride)) ) && ( ApplicableMembershipTypes == input.ApplicableMembershipTypes || (ApplicableMembershipTypes != null && ApplicableMembershipTypes.SequenceEqual(input.ApplicableMembershipTypes)) ) && ( IsPublic == input.IsPublic || (IsPublic != null && IsPublic.Equals(input.IsPublic)) ) && ( MembershipType == input.MembershipType || (MembershipType != null && MembershipType.Equals(input.MembershipType)) ) && ( MembershipId == input.MembershipId || (MembershipId.Equals(input.MembershipId)) ) && ( DisplayName == input.DisplayName || (DisplayName != null && DisplayName.Equals(input.DisplayName)) ) && ( BungieGlobalDisplayName == input.BungieGlobalDisplayName || (BungieGlobalDisplayName != null && BungieGlobalDisplayName.Equals(input.BungieGlobalDisplayName)) ) && ( BungieGlobalDisplayNameCode == input.BungieGlobalDisplayNameCode || (BungieGlobalDisplayNameCode.Equals(input.BungieGlobalDisplayNameCode)) )); }
public bool Equals(PartnerOfferHistoryResponse input) { if (input == null) { return(false); } return (( PartnerOfferKey == input.PartnerOfferKey || (PartnerOfferKey != null && PartnerOfferKey.Equals(input.PartnerOfferKey)) ) && ( MembershipId == input.MembershipId || (MembershipId.Equals(input.MembershipId)) ) && ( MembershipType == input.MembershipType || (MembershipType.Equals(input.MembershipType)) ) && ( LocalizedName == input.LocalizedName || (LocalizedName != null && LocalizedName.Equals(input.LocalizedName)) ) && ( LocalizedDescription == input.LocalizedDescription || (LocalizedDescription != null && LocalizedDescription.Equals(input.LocalizedDescription)) ) && ( IsConsumable == input.IsConsumable || (IsConsumable != null && IsConsumable.Equals(input.IsConsumable)) ) && ( QuantityApplied == input.QuantityApplied || (QuantityApplied.Equals(input.QuantityApplied)) ) && ( ApplyDate == input.ApplyDate || (ApplyDate != null && ApplyDate.Equals(input.ApplyDate)) )); }
public Tuple <string, string> GetDescriptor() { PlayerDescriptorDTO desc; if (MembershipId == "-1") { return(new Tuple <string, string>(string.Empty, string.Empty)); } if (MembershipId.IsNullOrEmpty()) { return(new Tuple <string, string>(GetFullName(), string.Empty)); } if (staffDictionary.TryGetValue(MembershipId, out desc)) { var name = desc.Name; switch (desc.TagBehaviorEnum) { case TagBehavior.Append: name = GetFullName(); break; case TagBehavior.ReplaceLastName: name = $"{FirstName}{(DonatorLevel >= 2 && !Nickname.IsNullOrEmpty() ? $" '{Nickname}'" : "")}"; break; case TagBehavior.ReplaceLastNameAndNick: name = $"{FirstName}"; break; } return(new Tuple <string, string>(name, desc.PictureURL)); } return(new Tuple <string, string>(GetFullName(), string.Empty)); }
public Account(MembershipId id) : base(id) { Id = id; entries = new AccountEntries(); }
public bool Equals(GeneralUser input) { if (input == null) { return(false); } return (( MembershipId == input.MembershipId || (MembershipId.Equals(input.MembershipId)) ) && ( UniqueName == input.UniqueName || (UniqueName != null && UniqueName.Equals(input.UniqueName)) ) && ( NormalizedName == input.NormalizedName || (NormalizedName != null && NormalizedName.Equals(input.NormalizedName)) ) && ( DisplayName == input.DisplayName || (DisplayName != null && DisplayName.Equals(input.DisplayName)) ) && ( ProfilePicture == input.ProfilePicture || (ProfilePicture.Equals(input.ProfilePicture)) ) && ( ProfileTheme == input.ProfileTheme || (ProfileTheme.Equals(input.ProfileTheme)) ) && ( UserTitle == input.UserTitle || (UserTitle.Equals(input.UserTitle)) ) && ( SuccessMessageFlags == input.SuccessMessageFlags || (SuccessMessageFlags.Equals(input.SuccessMessageFlags)) ) && ( IsDeleted == input.IsDeleted || (IsDeleted != null && IsDeleted.Equals(input.IsDeleted)) ) && ( About == input.About || (About != null && About.Equals(input.About)) ) && ( FirstAccess == input.FirstAccess || (FirstAccess != null && FirstAccess.Equals(input.FirstAccess)) ) && ( LastUpdate == input.LastUpdate || (LastUpdate != null && LastUpdate.Equals(input.LastUpdate)) ) && ( LegacyPortalUid == input.LegacyPortalUid || (LegacyPortalUid.Equals(input.LegacyPortalUid)) ) && ( Context == input.Context || (Context != null && Context.Equals(input.Context)) ) && ( PsnDisplayName == input.PsnDisplayName || (PsnDisplayName != null && PsnDisplayName.Equals(input.PsnDisplayName)) ) && ( XboxDisplayName == input.XboxDisplayName || (XboxDisplayName != null && XboxDisplayName.Equals(input.XboxDisplayName)) ) && ( FbDisplayName == input.FbDisplayName || (FbDisplayName != null && FbDisplayName.Equals(input.FbDisplayName)) ) && ( ShowActivity == input.ShowActivity || (ShowActivity != null && ShowActivity.Equals(input.ShowActivity)) ) && ( Locale == input.Locale || (Locale != null && Locale.Equals(input.Locale)) ) && ( LocaleInheritDefault == input.LocaleInheritDefault || (LocaleInheritDefault != null && LocaleInheritDefault.Equals(input.LocaleInheritDefault)) ) && ( LastBanReportId == input.LastBanReportId || (LastBanReportId.Equals(input.LastBanReportId)) ) && ( ShowGroupMessaging == input.ShowGroupMessaging || (ShowGroupMessaging != null && ShowGroupMessaging.Equals(input.ShowGroupMessaging)) ) && ( ProfilePicturePath == input.ProfilePicturePath || (ProfilePicturePath != null && ProfilePicturePath.Equals(input.ProfilePicturePath)) ) && ( ProfilePictureWidePath == input.ProfilePictureWidePath || (ProfilePictureWidePath != null && ProfilePictureWidePath.Equals(input.ProfilePictureWidePath)) ) && ( ProfileThemeName == input.ProfileThemeName || (ProfileThemeName != null && ProfileThemeName.Equals(input.ProfileThemeName)) ) && ( UserTitleDisplay == input.UserTitleDisplay || (UserTitleDisplay != null && UserTitleDisplay.Equals(input.UserTitleDisplay)) ) && ( StatusText == input.StatusText || (StatusText != null && StatusText.Equals(input.StatusText)) ) && ( StatusDate == input.StatusDate || (StatusDate != null && StatusDate.Equals(input.StatusDate)) ) && ( ProfileBanExpire == input.ProfileBanExpire || (ProfileBanExpire != null && ProfileBanExpire.Equals(input.ProfileBanExpire)) ) && ( BlizzardDisplayName == input.BlizzardDisplayName || (BlizzardDisplayName != null && BlizzardDisplayName.Equals(input.BlizzardDisplayName)) ) && ( SteamDisplayName == input.SteamDisplayName || (SteamDisplayName != null && SteamDisplayName.Equals(input.SteamDisplayName)) ) && ( StadiaDisplayName == input.StadiaDisplayName || (StadiaDisplayName != null && StadiaDisplayName.Equals(input.StadiaDisplayName)) ) && ( TwitchDisplayName == input.TwitchDisplayName || (TwitchDisplayName != null && TwitchDisplayName.Equals(input.TwitchDisplayName)) ) && ( CachedBungieGlobalDisplayName == input.CachedBungieGlobalDisplayName || (CachedBungieGlobalDisplayName != null && CachedBungieGlobalDisplayName.Equals(input.CachedBungieGlobalDisplayName)) ) && ( CachedBungieGlobalDisplayNameCode == input.CachedBungieGlobalDisplayNameCode || (CachedBungieGlobalDisplayNameCode.Equals(input.CachedBungieGlobalDisplayNameCode)) )); }
public bool Equals(DestinyProfileUserInfoCard input) { if (input == null) { return(false); } return (( DateLastPlayed == input.DateLastPlayed || (DateLastPlayed != null && DateLastPlayed.Equals(input.DateLastPlayed)) ) && ( IsOverridden == input.IsOverridden || (IsOverridden != null && IsOverridden.Equals(input.IsOverridden)) ) && ( IsCrossSavePrimary == input.IsCrossSavePrimary || (IsCrossSavePrimary != null && IsCrossSavePrimary.Equals(input.IsCrossSavePrimary)) ) && ( PlatformSilver == input.PlatformSilver || (PlatformSilver != null && PlatformSilver.Equals(input.PlatformSilver)) ) && ( UnpairedGameVersions == input.UnpairedGameVersions || (UnpairedGameVersions.Equals(input.UnpairedGameVersions)) ) && ( SupplementalDisplayName == input.SupplementalDisplayName || (SupplementalDisplayName != null && SupplementalDisplayName.Equals(input.SupplementalDisplayName)) ) && ( IconPath == input.IconPath || (IconPath != null && IconPath.Equals(input.IconPath)) ) && ( CrossSaveOverride == input.CrossSaveOverride || (CrossSaveOverride != null && CrossSaveOverride.Equals(input.CrossSaveOverride)) ) && ( ApplicableMembershipTypes == input.ApplicableMembershipTypes || (ApplicableMembershipTypes != null && ApplicableMembershipTypes.SequenceEqual(input.ApplicableMembershipTypes)) ) && ( IsPublic == input.IsPublic || (IsPublic != null && IsPublic.Equals(input.IsPublic)) ) && ( MembershipType == input.MembershipType || (MembershipType != null && MembershipType.Equals(input.MembershipType)) ) && ( MembershipId == input.MembershipId || (MembershipId.Equals(input.MembershipId)) ) && ( DisplayName == input.DisplayName || (DisplayName != null && DisplayName.Equals(input.DisplayName)) ) && ( BungieGlobalDisplayName == input.BungieGlobalDisplayName || (BungieGlobalDisplayName != null && BungieGlobalDisplayName.Equals(input.BungieGlobalDisplayName)) ) && ( BungieGlobalDisplayNameCode == input.BungieGlobalDisplayNameCode || (BungieGlobalDisplayNameCode.Equals(input.BungieGlobalDisplayNameCode)) )); }
public void Handle(MembershipFeeChanged @event) { repository .GetById <Account>(MembershipId.Parse(@event.MembershipId)) .Entries.ChangeMonthlyEntries(12, Money.Parse(@event.NewFee)); }
public void ThenAGymMembershipShouldHaveBeenCreatedWithAnIdOf(int id) { membership = repository.GetById <Membership>(MembershipId.Parse(id)); membership.Should().NotBeNull(); }
public bool Equals(DestinyCharacterComponent input) { if (input == null) { return(false); } return (( MembershipId == input.MembershipId || (MembershipId.Equals(input.MembershipId)) ) && ( MembershipType == input.MembershipType || (MembershipType != null && MembershipType.Equals(input.MembershipType)) ) && ( CharacterId == input.CharacterId || (CharacterId.Equals(input.CharacterId)) ) && ( DateLastPlayed == input.DateLastPlayed || (DateLastPlayed != null && DateLastPlayed.Equals(input.DateLastPlayed)) ) && ( MinutesPlayedThisSession == input.MinutesPlayedThisSession || (MinutesPlayedThisSession.Equals(input.MinutesPlayedThisSession)) ) && ( MinutesPlayedTotal == input.MinutesPlayedTotal || (MinutesPlayedTotal.Equals(input.MinutesPlayedTotal)) ) && ( Light == input.Light || (Light.Equals(input.Light)) ) && ( Stats == input.Stats || (Stats != null && Stats.SequenceEqual(input.Stats)) ) && ( RaceHash == input.RaceHash || (RaceHash.Equals(input.RaceHash)) ) && ( GenderHash == input.GenderHash || (GenderHash.Equals(input.GenderHash)) ) && ( ClassHash == input.ClassHash || (ClassHash.Equals(input.ClassHash)) ) && ( RaceType == input.RaceType || (RaceType != null && RaceType.Equals(input.RaceType)) ) && ( ClassType == input.ClassType || (ClassType != null && ClassType.Equals(input.ClassType)) ) && ( GenderType == input.GenderType || (GenderType != null && GenderType.Equals(input.GenderType)) ) && ( EmblemPath == input.EmblemPath || (EmblemPath != null && EmblemPath.Equals(input.EmblemPath)) ) && ( EmblemBackgroundPath == input.EmblemBackgroundPath || (EmblemBackgroundPath != null && EmblemBackgroundPath.Equals(input.EmblemBackgroundPath)) ) && ( EmblemHash == input.EmblemHash || (EmblemHash.Equals(input.EmblemHash)) ) && ( EmblemColor == input.EmblemColor || (EmblemColor != null && EmblemColor.Equals(input.EmblemColor)) ) && ( LevelProgression == input.LevelProgression || (LevelProgression != null && LevelProgression.Equals(input.LevelProgression)) ) && ( BaseCharacterLevel == input.BaseCharacterLevel || (BaseCharacterLevel.Equals(input.BaseCharacterLevel)) ) && ( PercentToNextLevel == input.PercentToNextLevel || (PercentToNextLevel.Equals(input.PercentToNextLevel)) ) && ( TitleRecordHash == input.TitleRecordHash || (TitleRecordHash.Equals(input.TitleRecordHash)) )); }