Exemplo n.º 1
0
 /// <summary>
 /// Withraws money using the card at an ATM. Taxes may be applied if money of different currency is withrawn and/or in not native country.
 /// </summary>
 /// <param name="sum">How much cash to withdraw.</param>
 /// <param name="targetCurrency">Type of currency to withdraw.</param>
 /// <param name="ATMCountry">Abbreviation of the country in which the withrawal is carried out.</param>
 /// <returns>True if withrawal was successful, false otherwise.</returns>
 public bool WithrawMoney(float sum, Currency targetCurrency, string ATMCountry)
 {
     return(paymentStrategy.Withdraw(sum, targetCurrency, ATMCountry, this));
 }