Ejemplo n.º 1
0
        public List<Publication> MockListPublications()
        {
            List<Publication> listOfPublications = new List<Publication>();

            Publication p1 = new Publication();
            p1.Author.Name = "James Doe";
            p1.ISBN = "0-330-28498-4";
            p1.reserved = false;
            p1.Title = "The long hello";

            Publication p2 = new Publication();
            p1.Author.Name = "James Doe";
            p1.ISBN = "0-330-28498-4";
            p1.reserved = false;
            p1.Title = "The long hello";

            Publication p3 = new Publication();
            p2.Author.Name = "Jane Doe";
            p2.ISBN = "0-330-28498-3";
            p2.reserved = false;
            p2.Title = "The long hello";

            Publication p4 = new Publication();
            p3.Author.Name = "Jane Kay";
            p3.ISBN = "0-330-28498-5";
            p3.reserved = true;
            p3.Title = "The long hello";

            listOfPublications.Add(p1);
            listOfPublications.Add(p2);
            listOfPublications.Add(p3);
            listOfPublications.Add(p4);

            return listOfPublications;
        }
Ejemplo n.º 2
0
        public List<Publication> MockListPublications()
        {
            List<Publication> listOfPublications = new List<Publication>();

            Publication p1 = new Publication();
            Author a1 = new Author();
            a1.Name = "James Doe";
            p1.ISBN = "0-330-28498-4";
            p1.reserved = false;
            p1.Title = "The long hello";
            p1.Author = a1;

            Publication p2 = new Publication();
            Author a2 = new Author();
            a2.Name = "James Doe";
            p2.ISBN = "0-330-28498-4";
            p2.reserved = false;
            p2.Title = "The long hello";
            p2.Author = a2;

            Publication p3 = new Publication();
            Author a3 = new Author();
            a3.Name = "James Doe";
            p3.ISBN = "0-330-28498-4";
            p3.reserved = false;
            p3.Title = "The long hello";
            p3.Author = a3;

            Publication p4 = new Publication();
            Author a4 = new Author();
            a4.Name = "James Doe";
            p4.ISBN = "0-330-28498-3";
            p4.reserved = true;
            p4.Title = "The long hello";
            p4.Author = a4;

            listOfPublications.Add(p1);
            listOfPublications.Add(p2);
            listOfPublications.Add(p3);
            listOfPublications.Add(p4);

            return listOfPublications;
        }