private static void Initialize() { StockEngine engine = new YahooStockEngine(); engine.ReInitializeAllPlayers(400); IEnumerable<Quote> stocks = engine.LookupQuotesForPlayers(engine.GetAllPlayers().Select(x => x.Name).ToArray()); engine.InsertQuotes(stocks); Log.Information("Saved {0} new stock prices to the database.", stocks.Count()); Log.Information("Initialized all players"); Console.WriteLine("Saved {0} new stock prices to the database.", stocks.Count()); Console.WriteLine("Initialized all players"); }