Ejemplo n.º 1
0
        private IEnumerable <BookWithoutAttributes> FillBookWithoutAttributesData(int count)
        {
            Random rnd = new Random((int)DateTime.Now.Ticks);

            List <BookWithoutAttributes> books = new List <BookWithoutAttributes>();

            for (int i = 0; i < count; i++)
            {
                BookWithoutAttributes book = new BookWithoutAttributes();

                FillBookData(book, rnd, i);

                books.Add(book);
            }

            return(books);
        }
Ejemplo n.º 2
0
        private IEnumerable<BookWithoutAttributes> FillBookWithoutAttributesData(int count)
        {
            Random rnd = new Random((int)DateTime.Now.Ticks);

            List<BookWithoutAttributes> books = new List<BookWithoutAttributes>();

            for (int i = 0; i < count; i++)
            {
                BookWithoutAttributes book = new BookWithoutAttributes();

                FillBookData(book, rnd, i);

                books.Add(book);
            }

            return books;
        }