Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jen20
7 months ago
|
parent
|
context
|
favorite
| on:
Dependency injection frameworks add confusion
If you’re doing that, you may as just mock your concrete class. Mockito supports this in Java. Perhaps this is needed in C#?
wordofx
7 months ago
[–]
Java is virtual by default. C# is not. You could mark every single method virtual and mock it like Java. But it’s easier to define a contract and mock that.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: