Exemplo n.º 1
0
 public void DoOperation(IBankOperation operation)
 {
     try
     {
         operation.Execute();
         _bankOperationsList.Add(operation);
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.Message);
     }
 }
Exemplo n.º 2
0
 public void DoOperation(IBankOperation operation)
 {
     operation.Execute(this);
 }