public void AddToy() { // Create a child Child kid = _book.AddChild("Terell"); // Add a toy for the child Toy toy = _register.Add("Silly Putty", kid); Assert.True(toy != null); }
public static void DoAction(SantasToyBag bag, SantasNiceList book) { var kid = KidsMenu.Show(book); Console.WriteLine("Enter toy"); Console.Write("> "); string toyName = Console.ReadLine(); bag.Add(toyName, kid); }