public Box CloseBox(Box box) { Console.WriteLine("Closing box..."); AddBoxToQueue(box); return GetClosedBox(box.Identifier); }
private void AddBoxToQueue(Box box) { Console.WriteLine("Adding box to closing system..."); box.State = BoxState.Closed; _closedBoxes.Add(box); }
private static void PutBagInBox(Bag bag, Box box) { Console.WriteLine("Putting bag in box..."); box.Bag = bag; }