Пример #1
0
        static void Main(string[] args)
        {
            List <Item> ItemListe = new List <Item>();

            Book      Herr_der_Nacht = new Book(50.00m, 1, "Herr der Nacht", "Author1", "5678a", Category.Child);
            Newspaper Heute          = new Newspaper(10.99m, 2, "Heute", new DateTime(2020, 9, 15));
            AudioBook Audible        = new AudioBook(5.99m, 3, "Drei???", "Author2", "54321b", 60, Category.Thriller);

            Console.WriteLine(Herr_der_Nacht.ToString());
            Console.WriteLine(Heute.ToString());
            Console.WriteLine(Audible.ToString());


            Console.ReadKey();
        }
Пример #2
0
        static void Main(string[] args)
        {
            // Test, ob Git funktioniert
            List <Item> daten = new List <Item>();

            Book b = new Book(25.00m, 5, "The Malta Exchange", "Steve Berry", "", Category.Thriller);

            Console.WriteLine(b.ToString());
            daten.Add(b);

            Newspaper n = new Newspaper(2.99m, 10, "Der Standard", DateTime.Now);

            Console.WriteLine(n.ToString());
            daten.Add(n);

            AudioBook ab = new AudioBook(3.99m, 10, "Alea Aquarius 6: Der Fluss des Vergessens", "Tanya Stewner", "", 536, Category.Fantasy);

            Console.WriteLine(ab.ToString());
            daten.Add(ab);

            Console.WriteLine($"3+3={BookstoreLibary.Bookstore.Add(3, 3)}");

            Console.ReadKey();
        }