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);
 }
示例#3
0
 private static void PutBagInBox(Bag bag, Box box)
 {
     Console.WriteLine("Putting bag in box...");
     box.Bag = bag;
 }