Domanda di colloquio di NIKE

How to write testable code, why use Dependence Injection.