Timeline for How to pass a mock object into a class for unit tests
Current License: CC BY-SA 4.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 17, 2018 at 15:17 | comment | added | Robert Harvey | You probably think you're not using DI because you're not using a DI container, but what you're doing is still DI, even without the container. | |
| May 17, 2018 at 15:07 | answer | added | candied_orange | timeline score: 4 | |
| May 17, 2018 at 13:33 | comment | added | Steve Chamaillard | Why would you not use dependency injection ? Using setters for needed dependencies is too implicit and fragile. | |
| May 17, 2018 at 12:30 | comment | added | Sam Becker | I think you answered your own question, dependency injection is the standard way of solving this problem. Perhaps you should look into ways you can integrate dependency injection into your application? | |
| May 17, 2018 at 11:54 | review | First posts | |||
| May 17, 2018 at 12:30 | |||||
| May 17, 2018 at 11:50 | history | asked | nevada_scout | CC BY-SA 4.0 |