Esempio n. 1
0
 /// <summary>
 /// Check if this account equals another account
 /// </summary>
 /// <param name="baseAccount">The base account for comparison</param>
 /// <param name="other">The accoutn to compare to</param>
 /// <returns>true if the elements of both accounts are equal, otherwise false</returns>
 public static bool IsEqual(this IAzureAccount baseAccount, IAzureAccount other)
 {
     return((baseAccount == null && other == null) || (baseAccount.CheckExtensionsEqual(other) &&
                                                       string.Equals(baseAccount.Credential, other.Credential, StringComparison.OrdinalIgnoreCase) &&
                                                       string.Equals(baseAccount.Id, other.Id, StringComparison.OrdinalIgnoreCase) &&
                                                       string.Equals(baseAccount.Type, other.Type, StringComparison.OrdinalIgnoreCase) &&
                                                       CheckEquality(baseAccount.TenantMap, other.TenantMap)));
 }