private void ObjectLessonOptions(int i) { if (i == 1) { var container = _containerController.CreateRandomContainer(); Console.WriteLine("Container Created..."); container.saymessage(); Console.WriteLine($"I have a capacity of {container._Capacity}"); Console.ReadLine(); } else if (i == 2) { var container = _containerController.CreateRandomContainer(); Console.WriteLine("Container Created..."); container.saymessage(); Console.WriteLine($"I have a capacity of {container._Capacity}"); _containerController.AddContainerToList(container); Console.WriteLine("Container added to list"); Console.ReadLine(); } else if (i == 3) { foreach (IContainer container in _containerController._containers) { int currentCOntainer = (_containerController._containers.IndexOf(container) + 1); Console.WriteLine(String.Format("{0,0} {1,-10} | {2,-15}", currentCOntainer, $"Type: {container._ContainerType}", $"Capacity: {container._Capacity}")); } Console.ReadLine(); } }