Approach 2b: Use an Interface

  • Make an interface for ProfileFetcher
  • Pass that interface in the constructor for TradeCalculator
  • Construct the ProfileFetcher outside of TradeCalculator

24 / 31