Classic dependency injection

With dependency injection, only interfaces are exposed to method callers, which means, details of the method is protected and invisible when being referened, in addition, the interface can be extended as customized and then let same method supports more similar cases. public class Employee { public Employee(ILogger logger) { logger.WriteToLog(“New employee created”); } } public … Continue reading Classic dependency injection