public static void TestBatesMotel() { Unit5.BatesMotel motel = new Unit5.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; } }
public static void TestBook() { Unit4.HorrorStory Book = new Unit4.HorrorStory(); string details; SimpleIO.WriteTitle("Horror Story", "4.3"); Console.Write("Would you like to enter your own details? (y/n) "); details = Console.ReadLine(); if (details == "y") { Book.GetDetails(); } Book.WriteChapter1(); Book.WriteChapter2(); }