Ejemplo n.º 1
0
        public static void Main(string[] args)
        {
            var formatter = GetFormatter(args);

            if (formatter == null)
            {
                ShowHelp();
                return;
            }

            var source = new FinanceYahooSource(new WebAdapter());
            var list   = source.GetRecords().Result;

            Console.Write(formatter.Format(list));
        }
Ejemplo n.º 2
0
        public FinanceYahooSourceTest()
        {
            webAdapter = new Mock <IWebAdapter>();

            source = new FinanceYahooSource(webAdapter.Object);
        }