Example #1
0
        /// <summary>
        /// Task 5.6
        /// </summary>
        private static void TestMotelBooking()
        {
            BatesMotel motel = new BatesMotel();

            SimpleIO.WriteTitle("The Bates Motel", "Task 5.6");

            string[] choices =
            {
                "1. Book a Room",
                "2. Vacate a Room",
                "3. Display All Rooms",
                "4. Vacate All Rooms",
                "5. Quit"
            };

            int choice = SimpleIO.GetChoice(choices);

            switch (choice)
            {
            case 1:
                motel.Book(1, 2);
                break;

            default:
                break;
            }
        }
Example #2
0
        private static void TestBook()
        {
            Book book = new Book();

            SimpleIO.WriteTitle("Horror Storey", "Task 4.1");

            //book.GetDetails();
            book.WriteChapter1();
            book.WriteChapter2();
        }