コード例 #1
0
        //Вызов не изменился
        static void Main(string[] args)
        {
            var tradeStream = Assembly.GetExecutingAssembly().GetManifestResourceStream("No7.Solution.Console.trades.txt");

            var tradeProcessor = new TradeHandler();

            tradeProcessor.HandleTrades(tradeStream);
        }
コード例 #2
0
        static void Main(string[] args)
        {
            var tradeStream = Assembly.GetExecutingAssembly().GetManifestResourceStream("No7.Solution.Console.trades.txt");

            var handler = new TradeHandler(tradeStream);

            var records = handler.GetRecords();

            var repository = new TradeRecordRepository("TradeData");

            repository.Save(records);
        }