Exemple #1
0
 private void CopyFrom(IAzureUserAccountDisplayInfo azureUserAccountDisplayInfo)
 {
     this.AccountDisplayName  = azureUserAccountDisplayInfo.AccountDisplayName;
     this.AccountLogo         = azureUserAccountDisplayInfo.AccountLogo;
     this.ProviderDisplayName = azureUserAccountDisplayInfo.ProviderDisplayName;
     this.ProviderLogo        = azureUserAccountDisplayInfo.ProviderLogo;
     this.UserName            = azureUserAccountDisplayInfo.UserName;
 }
Exemple #2
0
 /// <summary>
 /// Returns true if given user account equals this class
 /// </summary>
 public bool Equals(IAzureUserAccountDisplayInfo other)
 {
     return(other != null &&
            ((other.AccountDisplayName == null && AccountDisplayName == null) || (other.AccountDisplayName != null && other.AccountDisplayName.Equals(AccountDisplayName))) &&
            ((other.UserName == null && UserName == null) || (other.UserName != null && other.UserName.Equals(UserName))));
 }
Exemple #3
0
 /// <summary>
 /// Creating the instance using <see cref="IAzureUserAccountDisplayInfo" />
 /// </summary>
 public AzureUserAccountDisplayInfo(IAzureUserAccountDisplayInfo azureUserAccountDisplayInfo)
 {
     CopyFrom(azureUserAccountDisplayInfo);
 }