Exemple #1
0
 public void AddAccount(IAccount account)
 {
     if (account != null)
     {
         this.accounts.Add(account);
     }
 }
Exemple #2
0
 public void RemoveAccount(IAccount account)
 {
     if (account != null)
     {
         this.accounts.Remove(account);
     }
 }
 private void ValidateInputAccount(IAccount account)
 {
     if (account == null)
     {
         throw new ArgumentNullException("Account can't be null");
     }
 }