Example #1
0
 public override void LoanHandler(object sender, LoanEventArgs eventArgs)
 {
     if (eventArgs.Loan.Amount < 100000)
     {
         Console.WriteLine("{0} approved request# {1}", this.GetType().Name, eventArgs.Loan.Number);
     }
     else if (Successor != null)
     {
         Successor.LoanHandler(this, eventArgs);
     }
 }
Example #2
0
 public virtual void OnLoan(LoanEventArgs loanEventArgs)
 {
     LoanEvent?.Invoke(this, loanEventArgs);
 }
Example #3
0
 public abstract void LoanHandler(object sender, LoanEventArgs eventArgs);