Timeline for Can not understand how dependency injection can ease testing inside asp.net MVC
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 27, 2017 at 2:34 | answer | added | John Wu | timeline score: 2 | |
Jun 26, 2017 at 18:16 | comment | added | Greg Burghardt | @TheCatWhisperer: I agree that unit tests for controllers are not that helpful. Bugs crop up more often in permissions checks and business logic - both of which should not be handled by the controller. Automated functional tests are better for testing controllers. | |
Jun 26, 2017 at 17:43 | comment | added | TheCatWhisperer | IMO, unit testing a controller is largely a waste of time; at least if you've properly isolated the business logic away from the controller. | |
Jun 26, 2017 at 17:33 | comment | added | Frank Hileman | Dependency injection is a valid technique and probably needed more in web applications than elsewhere, but most of its promotion is hype caused by certain authors, and this trend will pass, like others. | |
Jun 26, 2017 at 16:52 | answer | added | Greg Burghardt | timeline score: 3 | |
Jun 26, 2017 at 16:37 | comment | added | Greg Burghardt | @gnat: That's not even close to be a duplicate. | |
Jun 26, 2017 at 16:32 | review | Close votes | |||
Jul 11, 2017 at 3:02 | |||||
Jun 26, 2017 at 16:04 | comment | added | gnat | Possible duplicate of (Why) is it important that a unit test not test dependencies? | |
Jun 26, 2017 at 16:03 | history | asked | test test | CC BY-SA 3.0 |