Dependency Injection Myth: Reference Passing

Miško Hevery (blog via Dave Dribin): Since UserRepository can no longer do a global look-up to get a hold of the Database it musk ask for it in the constructor. Since LoginPage is doing the construction it now needs to ask for the Databse so that it can pass it to the constructor of the … Continue reading Dependency Injection Myth: Reference Passing