2. About
• Dependency Injection
• Service Location
• TDD & Mocking - How they play together nicely
• Auto-mocking
• IOC - Tools, Features, Usage, Pros/Cons, Best
Practice
3.
4. Definition
• High-level modules should not depend
on low-level modules. Both should
depend on abstractions.
• Abstractions should not depend upon
details. Details should depend upon
abstractions.
6. Story
As a Customer
I want to change my password
In order to keep my account secure
Scenario
Given I’m an account holder
When I change my password
Then It should ensure it is a strong password
And it should change my password
And it should notify me it has been changed
15. A Little Best Practice
• Internal code should not reference
the container directly
• Verify registration with tests
• Constructor Injection over Setter
Injection over Service Location