public void AddAccount(IAccount account) { if (account != null) { this.accounts.Add(account); } }
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"); } }