Esempio n. 1
0
        public void StartWithdrawal(decimal amount, string currency)
        {
            RandomError();
            if (Account.ConvertToUAH(amount, currency) > 3000)
            {
                throw new LimitExceededException();
            }
            string NumberCredirCard = EnterConsoleValue.GetNumberCard("Enter Number Credir Card");

            Console.WriteLine($"You’ve deposit {amount} {currency} to your {NumberCredirCard} card successfully");
        }
Esempio n. 2
0
        public void StartDeposit(decimal amount, string currency)
        {
            RandomError();
            if (Account.ConvertToUAH(amount, currency) > limitOfTransactions)
            {
                throw new LimitExceededException();
            }
            string NumberCredirCard = EnterConsoleValue.GetNumberCard("Enter Number Credir Card");
            string ExpiryDate       = EnterConsoleValue.GetExpiryDate("Enter Expiry Date");
            string CVV = EnterConsoleValue.GetCVV("Enter CVV");

            Console.WriteLine($"You’ve withdraw {amount} {currency} from your {NumberCredirCard} card successfully");
        }