Approach 2: Pros and Cons

  • Pro: ???
  • Con: Who builds the ProfileFetcher?
  • You could construct it in TradeCalculator
  • ... but then you're stuck with a specific ProfileFetcher again
  • You could pass it in via the TradeCalculator constructor
  • ... but then who constructs it?

23 / 31