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 } }
//Method injection public void MakeAnApp(ICreditBaseManager creditBaseManager, List <ILoggerService> loggerServices) { //Client information is evaluated creditBaseManager.Calculate(); foreach (var loggerService in loggerServices) { loggerService.Log(); } }
public void Appeal(ICreditBaseManager creditBase, ILoggerService loggerService) { creditBase.Calculate(); loggerService.Log(); }
public void MakeApplication(ICreditBaseManager creditBaseManager, ILoggerService loggerService) // Method injection { creditBaseManager.Calculate(); loggerService.Log(); }