public TraderHostedService(TradeProcessingService tradeProcessingService, IAutoTrader autoTrader) { _tradeProcessingService = tradeProcessingService ?? throw new ArgumentNullException(nameof(tradeProcessingService)); _autoTrader = autoTrader ?? throw new ArgumentNullException(nameof(autoTrader)); }
public TraderController(IAutoTrader autoTrader) { _autoTrader = autoTrader ?? throw new ArgumentNullException(nameof(autoTrader)); }