Quantcast
Channel: User Filip Milovanović - Software Engineering Stack Exchange
Viewing all articles
Browse latest Browse all 164

Comment by Filip Milovanović on Dependency injection - passing responsibility for dependency to a Client?

$
0
0
Structurally, your approach in general makes proper testing easier (each class deals with a specific part of the overall problem, makes fewer assumptions, and each needs just one mock). That said, it's not necessarily a bad idea to have something that's more like a data transformer or, as Ewan suggested, a converter (that just produces the output data structure), and do the actual write elsewhere - I guess this is what your teammate was thinking. You guys are going to have to discuss it and decide what to do (and perhaps arrive at a third option).

Viewing all articles
Browse latest Browse all 164

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>