string When(ShipmentTransferredToCargoBay e)
 {
     var builder = new StringBuilder();
     builder.AppendFormat("Shipment '{0}' transferred to cargo bay:",e.Shipment.Name).AppendLine();
     foreach (var carPart in e.Shipment.Cargo)
     {
         builder.AppendFormat("     {0} {1} pcs", carPart.Name, carPart.Quantity).AppendLine();
     }
     return builder.ToString();
 }
示例#2
0
 void AnnounceInsideFactory(ShipmentTransferredToCargoBay e)
 {
     _shipmentsWaitingToBeUnloaded.Add(e.CarParts);
 }
示例#3
0
 void When(ShipmentTransferredToCargoBay e)
 {
     ShipmentsWaitingToBeUnloaded.Add(e.Shipment.Name, new InventoryShipment(e.Shipment.Name, e.Shipment.Cargo));
 }
示例#4
0
 void AnnounceInsideFactory(ShipmentTransferredToCargoBay e)
 {
     _shipmentsWaitingToBeUnloaded.Add(e.CarParts);
 }
示例#5
0
 void When(ShipmentTransferredToCargoBay e)
 {
     ShipmentsWaitingToBeUnloaded.Add(e.Shipment.Name, new InventoryShipment(e.Shipment.Name, e.Shipment.Cargo));
 }