Comment by Filip Milovanović on Repository and Service Interfaces in an...
@SamuelObisesan Thank you for taking the time to improve the answer. I've accepted most of your edits, but I elected to rephrase some parts of the answer for clarity. There was one edit that didn't...
View ArticleComment by Filip Milovanović on Why is a test coverage type called "code...
Seems like the source of the confusion is simply a quirk of the language: "X coverage" doesn't have to imply "coverage (of something) by X", it can also mean "coverage of X (by something)". In either...
View ArticleComment by Filip Milovanović on Code reusability/inheritance introduces...
Declare those internals as separate classes. You can then either inherit them or compose them into your object. Then write tests for those classes once (if you're using inheritance and the base class...
View ArticleComment by Filip Milovanović on Do I need to create an interface for every...
"which I think means I should create an interface for each service" - it does not mean that. The first point to keep in mind is: this shouldn't be done mechanistically - you actually have to think...
View Article