public static void Main(string[] args) { Trader trader = Trader.Instance(); TradingApp app = new TradingApp(trader); app.Start(trader); }
public static void Main(string[] args) { Logger logger = new Logger(); RemoteURLReader remoteURLReader = new RemoteURLReader(); StockAPIService stockAPIService = new StockAPIService(remoteURLReader); Trader trader = new Trader(stockAPIService, logger); TradingApp app = new TradingApp(trader, logger); app.Start(); }
public static void Main(string[] args) { ILogger logger = new Logger(); IUrlReader urlReader = new RemoteURLReader(); IApiService apiService = new StockAPIService(urlReader); ITrader trader = new Trader(logger, apiService); TradingApp app = new TradingApp(logger, trader, urlReader, apiService); app.Start(); }