3 ms·
You have found one exception: if the item has multiple different implementations - as your discount strategy does - then you should mock (or better yet fake) t
by bluGill 6y ago
You have found one exception: if the item has multiple different implementations - as your discount strategy does - then you should mock (or better yet fake) the implementation. In this case testing with a real doesn't gain you anything.