/// <summary> /// Returns true if BanksModel2 instances are equal /// </summary> /// <param name="other">Instance of BanksModel2 to be compared</param> /// <returns>Boolean</returns> public bool Equals(BanksModel2 other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( AccountId == other.AccountId || AccountId != null && AccountId.Equals(other.AccountId) ) && ( BankInfo == other.BankInfo || BankInfo != null && BankInfo.Equals(other.BankInfo) ) && ( SessionToken == other.SessionToken || SessionToken != null && SessionToken.Equals(other.SessionToken) )); }
public override bool Equals(object o) { if (!(o is HttpAccount)) { return(false); } HttpAccount v = o as HttpAccount; if (!AccountId.Equals(v.AccountId)) { return(false); } if (!IsBasicAuthentication.Equals(v.IsBasicAuthentication)) { return(false); } if (!Password.Equals(v.Password)) { return(false); } if (!Timeout.Equals(v.Timeout)) { return(false); } if (!Url.Equals(v.Url)) { return(false); } if (!UserName.Equals(v.UserName)) { return(false); } return(true); }
public override bool Equals(object o) { if (!(o is TimeServerAccount)) { return(false); } TimeServerAccount v = o as TimeServerAccount; if (!AccountId.Equals(v.AccountId)) { return(false); } if (!IsSecured.Equals(v.IsSecured)) { return(false); } if (!Password.Equals(v.Password)) { return(false); } if (!Url.Equals(v.Url)) { return(false); } if (!UserName.Equals(v.UserName)) { return(false); } return(true); }
public override bool Equals(object o) { if (!(o is FtpAccount)) { return(false); } FtpAccount v = o as FtpAccount; if (!AccountId.Equals(v.AccountId)) { return(false); } if (!Password.Equals(v.Password)) { return(false); } if (!Server.Equals(v.Server)) { return(false); } if (!UserName.Equals(v.UserName)) { return(false); } return(true); }
public override bool Equals(object obj) { return(obj is AccountAuctionRelationDTO dTO && AccountId.Equals(dTO.AccountId) && AuctionId.Equals(dTO.AuctionId) && BidValue.Equals(dTO.BidValue)); }
public override bool Equals(object o) { if (!(o is Ftp)) { return(false); } Ftp v = o as Ftp; if (!AccountId.Equals(v.AccountId)) { return(false); } if (!Directory.Equals(v.Directory)) { return(false); } if (!Enabled.Equals(v.Enabled)) { return(false); } if (!EnsureUniqueFilenames.Equals(v.EnsureUniqueFilenames)) { return(false); } return(true); }
/// <summary> /// Returns true if AccountOverviewViewModel instances are equal /// </summary> /// <param name="other">Instance of AccountOverviewViewModel to be compared</param> /// <returns>Boolean</returns> public bool Equals(AccountOverviewViewModel other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( AccountId == other.AccountId || AccountId != null && AccountId.Equals(other.AccountId) ) && ( BankId == other.BankId || BankId != null && BankId.Equals(other.BankId) ) && ( AccountNumber == other.AccountNumber || AccountNumber != null && AccountNumber.Equals(other.AccountNumber) )); }
// /// <summary> // /// Returns the string presentation of the object // /// </summary> // /// <returns>String presentation of the object</returns> // public override string ToString() // { // var sb = new StringBuilder(); // sb.Append("class User {\n"); // sb.Append(" Id: ").Append(ContactId).Append("\n"); // sb.Append(" GivenName: ").Append(GivenName).Append("\n"); // sb.Append(" Surname: ").Append(Surname).Append("\n"); // sb.Append(" Active: ").Append(Active).Append("\n"); // sb.Append(" Initials: ").Append(Initials).Append("\n"); // sb.Append(" Email: ").Append(Email).Append("\n"); // sb.Append(" SmUserId: ").Append(SmUserId).Append("\n"); // sb.Append(" Guid: ").Append(AccountId).Append("\n"); // sb.Append(" SmAuthorizationDirectory: ").Append(UserType).Append("\n"); // sb.Append(" UserRoles: ").Append(UserRoles).Append("\n"); // sb.Append("}\n"); // return sb.ToString(); // } // /// <summary> // /// Returns the JSON string presentation of the object // /// </summary> // /// <returns>JSON string presentation of the object</returns> // public string ToJson() // { // return JsonConvert.SerializeObject(this, Formatting.Indented); // } // /// <summary> // /// Returns true if objects are equal // /// </summary> // /// <param name="obj">Object to be compared</param> // /// <returns>Boolean</returns> // public override bool Equals(object obj) // { // if (obj is null) { return false; } // if (ReferenceEquals(this, obj)) { return true; } // return obj.GetType() == GetType() && Equals((User)obj); // } /// <summary> /// Returns true if User instances are equal /// </summary> /// <param name="other">Instance of User to be compared</param> /// <returns>Boolean</returns> public bool Equals(User other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(( ContactId == other.ContactId || ContactId.Equals(other.ContactId) ) && ( GivenName == other.GivenName || GivenName != null && GivenName.Equals(other.GivenName) ) && ( Surname == other.Surname || Surname != null && Surname.Equals(other.Surname) ) && ( Active == other.Active || Active.Equals(other.Active) ) && ( Initials == other.Initials || Initials != null && Initials.Equals(other.Initials) ) && ( Email == other.Email || Email != null && Email.Equals(other.Email) ) && ( SmUserId == other.SmUserId || SmUserId != null && SmUserId.Equals(other.SmUserId) ) && ( AccountId == other.AccountId || AccountId != null && AccountId.Equals(other.AccountId) ) && ( UserType == other.UserType || UserType != null && UserType.Equals(other.UserType) ) && ( UserRoles == other.UserRoles || UserRoles != null && UserRoles.SequenceEqual(other.UserRoles) )); }
public override bool Equals(object o) { if (!(o is DropboxSettings)) { return(false); } DropboxSettings v = o as DropboxSettings; if (!AccountId.Equals(v.AccountId)) { return(false); } if (!CreateShareLink.Equals(v.CreateShareLink)) { return(false); } if (!Enabled.Equals(v.Enabled)) { return(false); } if (!EnsureUniqueFilenames.Equals(v.EnsureUniqueFilenames)) { return(false); } if (!SharedFolder.Equals(v.SharedFolder)) { return(false); } return(true); }
/// <summary> /// Returns true if BankingDirectDebit instances are equal /// </summary> /// <param name="other">Instance of BankingDirectDebit to be compared</param> /// <returns>Boolean</returns> public bool Equals(BankingDirectDebit other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( AccountId == other.AccountId || AccountId != null && AccountId.Equals(other.AccountId) ) && ( AuthorisedEntity == other.AuthorisedEntity || AuthorisedEntity != null && AuthorisedEntity.Equals(other.AuthorisedEntity) ) && ( LastDebitDateTime == other.LastDebitDateTime || LastDebitDateTime != null && LastDebitDateTime.Equals(other.LastDebitDateTime) ) && ( LastDebitAmount == other.LastDebitAmount || LastDebitAmount != null && LastDebitAmount.Equals(other.LastDebitAmount) )); }
/// <summary> /// Returns true if PaymentProduct840CustomerAccount instances are equal /// </summary> /// <param name="other">Instance of PaymentProduct840CustomerAccount to be compared</param> /// <returns>Boolean</returns> public bool Equals(PaymentProduct840CustomerAccount other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( AccountId == other.AccountId || AccountId != null && AccountId.Equals(other.AccountId) ) && ( BillingAgreementId == other.BillingAgreementId || BillingAgreementId != null && BillingAgreementId.Equals(other.BillingAgreementId) ) && ( CompanyName == other.CompanyName || CompanyName != null && CompanyName.Equals(other.CompanyName) ) && ( CountryCode == other.CountryCode || CountryCode != null && CountryCode.Equals(other.CountryCode) ) && ( CustomerAccountStatus == other.CustomerAccountStatus || CustomerAccountStatus != null && CustomerAccountStatus.Equals(other.CustomerAccountStatus) ) && ( CustomerAddressStatus == other.CustomerAddressStatus || CustomerAddressStatus != null && CustomerAddressStatus.Equals(other.CustomerAddressStatus) ) && ( FirstName == other.FirstName || FirstName != null && FirstName.Equals(other.FirstName) ) && ( PayerId == other.PayerId || PayerId != null && PayerId.Equals(other.PayerId) ) && ( Surname == other.Surname || Surname != null && Surname.Equals(other.Surname) )); }
/// <summary> /// Returns true if BankingAccount instances are equal /// </summary> /// <param name="other">Instance of BankingAccount to be compared</param> /// <returns>Boolean</returns> public bool Equals(BankingAccount other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( AccountId == other.AccountId || AccountId != null && AccountId.Equals(other.AccountId) ) && ( DisplayName == other.DisplayName || DisplayName != null && DisplayName.Equals(other.DisplayName) ) && ( Nickname == other.Nickname || Nickname != null && Nickname.Equals(other.Nickname) ) && ( MaskedNumber == other.MaskedNumber || MaskedNumber != null && MaskedNumber.Equals(other.MaskedNumber) ) && ( OpenStatus == other.OpenStatus || OpenStatus != null && OpenStatus.Equals(other.OpenStatus) ) && ( IsOwned == other.IsOwned || IsOwned != null && IsOwned.Equals(other.IsOwned) ) && ( ProductCategory == other.ProductCategory || ProductCategory != null && ProductCategory.Equals(other.ProductCategory) ) && ( ProductName == other.ProductName || ProductName != null && ProductName.Equals(other.ProductName) )); }
/// <summary> /// Returns true if OrderMarketChange instances are equal /// </summary> /// <param name="other">Instance of OrderMarketChange to be compared</param> /// <returns>Boolean</returns> public bool Equals(OrderMarketChange other) { // credit: http://stackoverflow.com/a/10454552/677735 if (other == null) { return(false); } return((AccountId == other.AccountId || AccountId != null && AccountId.Equals(other.AccountId)) && (Orc == other.Orc || Orc != null && Orc.SequenceEqual(other.Orc)) && (Closed == other.Closed || Closed != null && Closed.Equals(other.Closed)) && (Id == other.Id || Id != null && Id.Equals(other.Id)) && (FullImage == other.FullImage || FullImage != null && FullImage.Equals(other.FullImage))); }
public bool Equals([AllowNull] BankAccount other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(BankCode.Equals(other.BankCode) && AccountId.Equals(other.AccountId) && Type.Equals(other.Type)); }
public override bool Equals(object o) { if (!(o is EmailSmtpSettings)) { return(false); } EmailSmtpSettings v = o as EmailSmtpSettings; if (!AccountId.Equals(v.AccountId)) { return(false); } if (!AddSignature.Equals(v.AddSignature)) { return(false); } if (!AdditionalAttachments.SequenceEqual(v.AdditionalAttachments)) { return(false); } if (!Content.Equals(v.Content)) { return(false); } if (!Enabled.Equals(v.Enabled)) { return(false); } if (!Html.Equals(v.Html)) { return(false); } if (!Recipients.Equals(v.Recipients)) { return(false); } if (!RecipientsBcc.Equals(v.RecipientsBcc)) { return(false); } if (!RecipientsCc.Equals(v.RecipientsCc)) { return(false); } if (!Subject.Equals(v.Subject)) { return(false); } return(true); }
public bool Equals( EnumPartitionedTestValue other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(PartitionId.Equals(other.PartitionId) && AccountId.Equals(other.AccountId) && Message == other.Message); }
public bool Equals( AzureTablesTestValue other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(AccountId.Equals(other.AccountId) && SecondaryId.Equals(other.SecondaryId) && Message == other.Message); }
/// <summary> /// Returns true if AccountDetailsViewModel instances are equal /// </summary> /// <param name="other">Instance of AccountDetailsViewModel to be compared</param> /// <returns>Boolean</returns> public bool Equals(AccountDetailsViewModel other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( AccountId == other.AccountId || AccountId != null && AccountId.Equals(other.AccountId) ) && ( BankId == other.BankId || BankId != null && BankId.Equals(other.BankId) ) && ( AccountNumber == other.AccountNumber || AccountNumber != null && AccountNumber.Equals(other.AccountNumber) ) && ( SortCode == other.SortCode || SortCode != null && SortCode.Equals(other.SortCode) ) && ( AccountName == other.AccountName || AccountName != null && AccountName.Equals(other.AccountName) ) && ( CurrentBalance == other.CurrentBalance || CurrentBalance != null && CurrentBalance.Equals(other.CurrentBalance) ) && ( OverdraftLimit == other.OverdraftLimit || OverdraftLimit != null && OverdraftLimit.Equals(other.OverdraftLimit) )); }
public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj == this) { return(true); } return(obj is BalancePaymentDetails other && ((AccountId == null && other.AccountId == null) || (AccountId?.Equals(other.AccountId) == true)) && ((Status == null && other.Status == null) || (Status?.Equals(other.Status) == true))); }
public override bool Equals(object o) { if (!(o is HttpSettings)) { return(false); } HttpSettings v = o as HttpSettings; if (!AccountId.Equals(v.AccountId)) { return(false); } if (!Enabled.Equals(v.Enabled)) { return(false); } return(true); }
public override bool Equals(object o) { if (!(o is FtpAccount)) { return(false); } FtpAccount v = o as FtpAccount; if (!AccountId.Equals(v.AccountId)) { return(false); } if (!AuthenticationType.Equals(v.AuthenticationType)) { return(false); } if (!FtpConnectionType.Equals(v.FtpConnectionType)) { return(false); } if (!KeyFileRequiresPass.Equals(v.KeyFileRequiresPass)) { return(false); } if (!Password.Equals(v.Password)) { return(false); } if (!PrivateKeyFile.Equals(v.PrivateKeyFile)) { return(false); } if (!Server.Equals(v.Server)) { return(false); } if (!UserName.Equals(v.UserName)) { return(false); } return(true); }
public override bool Equals(object o) { if (!(o is SmtpAccount)) { return(false); } SmtpAccount v = o as SmtpAccount; if (!AccountId.Equals(v.AccountId)) { return(false); } if (!Address.Equals(v.Address)) { return(false); } if (!Password.Equals(v.Password)) { return(false); } if (!Port.Equals(v.Port)) { return(false); } if (!Server.Equals(v.Server)) { return(false); } if (!Ssl.Equals(v.Ssl)) { return(false); } if (!UserName.Equals(v.UserName)) { return(false); } return(true); }
public override bool Equals(object o) { if (!(o is DropboxAccount)) { return(false); } DropboxAccount v = o as DropboxAccount; if (!AccessToken.Equals(v.AccessToken)) { return(false); } if (!AccountId.Equals(v.AccountId)) { return(false); } if (!AccountInfo.Equals(v.AccountInfo)) { return(false); } return(true); }
/// <summary> /// Returns true if BankingBalance instances are equal /// </summary> /// <param name="other">Instance of BankingBalance to be compared</param> /// <returns>Boolean</returns> public bool Equals(BankingBalance other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( AccountId == other.AccountId || AccountId != null && AccountId.Equals(other.AccountId) ) && ( BalanceUType == other.BalanceUType || BalanceUType != null && BalanceUType.Equals(other.BalanceUType) ) && ( Deposit == other.Deposit || Deposit != null && Deposit.Equals(other.Deposit) ) && ( Lending == other.Lending || Lending != null && Lending.Equals(other.Lending) ) && ( Purses == other.Purses || Purses != null && Purses.SequenceEqual(other.Purses) )); }
public bool Equals(Account other) { if (ReferenceEquals(other, null)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(AccountId.Equals(other.AccountId) && string.Equals(Username, other.Username) && string.Equals(FirstName, other.FirstName) && string.Equals(LastName, other.LastName) && string.Equals(Email, other.Email) && string.Equals(Contact, other.Contact) && Birthday.Equals(other.Birthday) && Gender.Equals(other.Gender) && AccTypeId.Equals(other.AccTypeId) && DateRegistered.Equals(other.DateRegistered)); }
public void Returns_False_On_NotEqual( AccountId sut, AccountId other) { Assert.True(!sut.Equals(other)); }
/// <summary> /// Returns true if BankingTransaction instances are equal /// </summary> /// <param name="other">Instance of BankingTransaction to be compared</param> /// <returns>Boolean</returns> public bool Equals(BankingTransaction other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( AccountId == other.AccountId || AccountId != null && AccountId.Equals(other.AccountId) ) && ( TransactionId == other.TransactionId || TransactionId != null && TransactionId.Equals(other.TransactionId) ) && ( IsDetailAvailable == other.IsDetailAvailable || IsDetailAvailable != null && IsDetailAvailable.Equals(other.IsDetailAvailable) ) && ( Type == other.Type || Type != null && Type.Equals(other.Type) ) && ( Status == other.Status || Status != null && Status.Equals(other.Status) ) && ( Description == other.Description || Description != null && Description.Equals(other.Description) ) && ( PostingDateTime == other.PostingDateTime || PostingDateTime != null && PostingDateTime.Equals(other.PostingDateTime) ) && ( ValueDateTime == other.ValueDateTime || ValueDateTime != null && ValueDateTime.Equals(other.ValueDateTime) ) && ( ExecutionDateTime == other.ExecutionDateTime || ExecutionDateTime != null && ExecutionDateTime.Equals(other.ExecutionDateTime) ) && ( Amount == other.Amount || Amount != null && Amount.Equals(other.Amount) ) && ( Currency == other.Currency || Currency != null && Currency.Equals(other.Currency) ) && ( Reference == other.Reference || Reference != null && Reference.Equals(other.Reference) ) && ( MerchantName == other.MerchantName || MerchantName != null && MerchantName.Equals(other.MerchantName) ) && ( MerchantCategoryCode == other.MerchantCategoryCode || MerchantCategoryCode != null && MerchantCategoryCode.Equals(other.MerchantCategoryCode) ) && ( BillerCode == other.BillerCode || BillerCode != null && BillerCode.Equals(other.BillerCode) ) && ( BillerName == other.BillerName || BillerName != null && BillerName.Equals(other.BillerName) ) && ( Crn == other.Crn || Crn != null && Crn.Equals(other.Crn) ) && ( ApcaNumber == other.ApcaNumber || ApcaNumber != null && ApcaNumber.Equals(other.ApcaNumber) )); }
bool IIdentifiable <IAccount> .DataEquals(IAccount other) { return(AccountId.Equals(other.AccountId)); }
public void Returns_False_On_Type(AccountId sut) { var value = sut.ToString(); Assert.True(!sut.Equals(value)); }
public void Returns_False_On_Null(AccountId sut) { Assert.True(!sut.Equals(null)); }