I like dependency injection over Singleton for automated testing purposes. Singleton implies global state which is always hard to mock. Injecting a network manager that feeds you your test data has been a nice clean way…
I like dependency injection over Singleton for automated testing purposes. Singleton implies global state which is always hard to mock. Injecting a network manager that feeds you your test data has been a nice clean way…