dependency injection
TypeScript in Production notes about dependency injection
Choose runtime structure and behavior
Dependency Injection in TypeScript Without Classes or a Container
Pass an order service its charge and save functions, choose implementations at the application edge, and test the service with fakes.

