GetClientId() public method

public GetClientId ( ) : string
return string
コード例 #1
0
ファイル: ClientAccounts.cs プロジェクト: habib/AnujBank
 private void Validate(Account newAccount)
 {
     string clientId = newAccount.GetClientId();
      if (accounts.Any(account => account.GetClientId() != clientId))
      {
     throw new ArgumentException("Account from two different clients cannot be added.");
      }
 }
コード例 #2
0
ファイル: ClientAccounts.cs プロジェクト: habib/AnujBank
        private void Validate(Account newAccount)
        {
            string clientId = newAccount.GetClientId();

            if (accounts.Any(account => account.GetClientId() != clientId))
            {
                throw new ArgumentException("Account from two different clients cannot be added.");
            }
        }