AccountActive() public method

public AccountActive ( int accNumber ) : bool
accNumber int
return bool
 public void WithDrawCash(double cashToGet)
 {
     if (accChecker.AccountActive(GetAccountNumber()) && codeChecker.IsCodeCorrect(GetSecurityCode()) && fundChecker.HaveEnoughMoney(cashToGet))
     {
         Console.WriteLine("Transaction Completed\n");
     }
     else
     {
         Console.WriteLine("Transaction Failed\n");
     }
 }
Beispiel #2
0
 public void WithdrawCash(double cash)
 {
     if (accChecker.AccountActive(GetAccountNumber()) &&
         codeChecker.IsCodeCorrect(GetSecurityCode()) &&
         fundChecker.HaveEnoughMoney(cash))
     {
         fundChecker.WithdrawMoney(cash);
         Debug.Log("Transaction complete.");
     }
     else
     {
         Debug.Log("Transaction failed.");
     }
 }