Created
February 22, 2017 10:31
-
-
Save atomgomba/68530853082394958599b099dcccf729 to your computer and use it in GitHub Desktop.
Dependency Injection bad practice
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Baby { | |
private Bottle mBottle; | |
public Baby() { | |
// rossz, nem tesztelhető kód | |
mBottle = new Bottle(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment