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(SantasNiceList registry) { Console.Clear(); Console.WriteLine("Enter child name"); Console.Write("> "); string childName = Console.ReadLine(); Child childId = registry.AddChild(childName); }
public void AddChildren(string child) { var result = _register.AddChild(child); Assert.True(result != null); }