Service Locator is a dangerous pattern because it almost works . You can locate Dependencies from consuming classes, and you can replace those Dependencies with different implementations — even with Test Doubles from unit tests.
Service Locator is a dangerous pattern because it almost works . You can locate Dependencies from consuming classes, and you can replace those Dependencies with different implementations — even with Test Doubles from unit tests.