Exemplo n.º 1
0
 public void Apply(ICreditBaseManager creditBaseManager, ILoggerService loggerService)
 {
     //Başvuran bilgilerini değerlendir.
     //
     creditBaseManager.Calculate();
     loggerService.Log();
 }
 // Burada yaptığımız şey method injections
 public void DoApplication(ICreditBaseManager creditBaseManager, List <ILogger> loggerService) // Başvuru Yap
 {
     creditBaseManager.Calculate();
     foreach (var item in loggerService)
     {
         item.Log(); // Hangi LOGLAYICI secilmiş ise onu logla
     }
 }
Exemplo n.º 3
0
 //Method injection
 public void MakeAnApp(ICreditBaseManager creditBaseManager, List <ILoggerService> loggerServices)
 {
     //Client information is evaluated
     creditBaseManager.Calculate();
     foreach (var loggerService in loggerServices)
     {
         loggerService.Log();
     }
 }
Exemplo n.º 4
0
 public void Appeal(ICreditBaseManager creditBase, ILoggerService loggerService)
 {
     creditBase.Calculate();
     loggerService.Log();
 }
Exemplo n.º 5
0
 public void MakeApplication(ICreditBaseManager creditBaseManager, ILoggerService loggerService) // Method injection
 {
     creditBaseManager.Calculate();
     loggerService.Log();
 }