/// <summary> /// Returns true if OutputAuthLogin instances are equal /// </summary> /// <param name="other">Instance of OutputAuthLogin to be compared</param> /// <returns>Boolean</returns> public bool Equals(OutputAuthLogin other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( AccessToken == other.AccessToken || AccessToken != null && AccessToken.Equals(other.AccessToken) ) && ( RefreshToken == other.RefreshToken || RefreshToken != null && RefreshToken.Equals(other.RefreshToken) ) && ( ExpiresIn == other.ExpiresIn || ExpiresIn != null && ExpiresIn.Equals(other.ExpiresIn) )); }
/// <summary> /// Returns true if InputAuthLogin instances are equal /// </summary> /// <param name="other">Instance of InputAuthLogin to be compared</param> /// <returns>Boolean</returns> public bool Equals(InputAuthLogin other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( RefreshToken == other.RefreshToken || RefreshToken != null && RefreshToken.Equals(other.RefreshToken) ) && ( RememberMe == other.RememberMe || RememberMe != null && RememberMe.Equals(other.RememberMe) ) && ( ClientData == other.ClientData || ClientData != null && ClientData.Equals(other.ClientData) )); }
public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj == this) { return(true); } return(obj is ObtainTokenRequest other && ((ClientId == null && other.ClientId == null) || (ClientId?.Equals(other.ClientId) == true)) && ((ClientSecret == null && other.ClientSecret == null) || (ClientSecret?.Equals(other.ClientSecret) == true)) && ((Code == null && other.Code == null) || (Code?.Equals(other.Code) == true)) && ((RedirectUri == null && other.RedirectUri == null) || (RedirectUri?.Equals(other.RedirectUri) == true)) && ((GrantType == null && other.GrantType == null) || (GrantType?.Equals(other.GrantType) == true)) && ((RefreshToken == null && other.RefreshToken == null) || (RefreshToken?.Equals(other.RefreshToken) == true)) && ((MigrationToken == null && other.MigrationToken == null) || (MigrationToken?.Equals(other.MigrationToken) == true)) && ((Scopes == null && other.Scopes == null) || (Scopes?.Equals(other.Scopes) == true)) && ((ShortLived == null && other.ShortLived == null) || (ShortLived?.Equals(other.ShortLived) == true))); }
public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj == this) { return(true); } return(obj is ObtainTokenResponse other && ((Context == null && other.Context == null) || (Context?.Equals(other.Context) == true)) && ((AccessToken == null && other.AccessToken == null) || (AccessToken?.Equals(other.AccessToken) == true)) && ((TokenType == null && other.TokenType == null) || (TokenType?.Equals(other.TokenType) == true)) && ((ExpiresAt == null && other.ExpiresAt == null) || (ExpiresAt?.Equals(other.ExpiresAt) == true)) && ((MerchantId == null && other.MerchantId == null) || (MerchantId?.Equals(other.MerchantId) == true)) && ((SubscriptionId == null && other.SubscriptionId == null) || (SubscriptionId?.Equals(other.SubscriptionId) == true)) && ((PlanId == null && other.PlanId == null) || (PlanId?.Equals(other.PlanId) == true)) && ((IdToken == null && other.IdToken == null) || (IdToken?.Equals(other.IdToken) == true)) && ((RefreshToken == null && other.RefreshToken == null) || (RefreshToken?.Equals(other.RefreshToken) == true)) && ((ShortLived == null && other.ShortLived == null) || (ShortLived?.Equals(other.ShortLived) == true))); }
public void HandlesNullCorrectly() { RefreshToken refreshToken = new RefreshToken(); Assert.False(refreshToken.Equals(null)); }