示例#1
0
        public static void Main(string[] args)
        {
            Trader     trader = Trader.Instance();
            TradingApp app    = new TradingApp(trader);

            app.Start(trader);
        }
示例#2
0
        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();
        }
示例#3
0
        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();
        }