Exemple #1
0
 public void GetTransactionList(Client client)
 {
     if (client.IsPremium)
     {
         if (_system == null)
         {
             _system = new BankSystem();
         }
         _system.GetTransactionList(client);
         return;
     }
     Console.WriteLine($"This operation is Forbidden for {client.Name}");
 }
Exemple #2
0
 public BankUI(IBankSystem bankSystem)
 {
     this.bankSystem = bankSystem;
     this.account    = null;
 }