Exemple #1
0
 public Beneficiary(long accountNumber, string name, string bankName, double maxLimit, TransactionTypeChoice transactionType)
 {
     this.accountNumber   = accountNumber;
     this.name            = name;
     this.bankName        = bankName;
     this.maxLimit        = maxLimit;
     this.transactionType = transactionType;
 }
Exemple #2
0
 public void ShowAllBenificiary(TransactionTypeChoice choice)
 {
     foreach (var i in list)
     {
         if (i.transactionType == choice)
         {
             Console.WriteLine(i.name + " " + i.accountNumber + " " + i.bankName + " " + i.maxLimit + " " + i.transactionType);
         }
     }
 }