示例#1
0
 public override void Handle(CustomerBalanceRequest request)
 {
     if (request.Balance > 5000)
     {
         Console.WriteLine("{0} approved balance for {2} request. Balance: {1}", this.GetType().Name, request.Balance, request.CustomerName);
     }
     else if (_superVisor != null)
     {
         _superVisor.Handle(request);
     }
 }
示例#2
0
 public abstract void Handle(CustomerBalanceRequest request);