Ejemplo n.º 1
0
        public static IEnumerable GetStockQuotations(int start, int limit)
        {
            List<StockQuotation> data = new List<StockQuotation>();

            Random randow = new Random();
            DateTime now = DateTime.Now;

            for (int i = start + 1; i <= start + limit; i++)
            {
                StockQuotation qoute = new StockQuotation()
                {
                    Company = "Company " + i,
                    Price = randow.Next(0, 200),
                    LastUpdate = now
                };

                data.Add(qoute);
            }

            return data;
        }
Ejemplo n.º 2
0
        public static IEnumerable GetStockQuotations(int start, int limit)
        {
            List <StockQuotation> data = new List <StockQuotation>();

            Random   randow = new Random();
            DateTime now    = DateTime.Now;

            for (int i = start + 1; i <= start + limit; i++)
            {
                StockQuotation qoute = new StockQuotation()
                {
                    Company    = "Company " + i,
                    Price      = randow.Next(0, 200),
                    LastUpdate = now
                };

                data.Add(qoute);
            }

            return(data);
        }