Dependency injection

Overview of dependency injection Dependency injection is a best-practice software development technique for ensuring classes remain loosely coupled and making unit testing easier. Take, for example, a service that uses a 3rd party service for sending emails. Traditionally, any class needing to use this service might create an instance. The problem with this approach is … Continue reading Dependency injection