コード例 #1
0
        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 When(ShipmentTransferredToCargoBay e)
 {
     ShipmentsWaitingToBeUnloaded.Add(e.Shipment.Name, new InventoryShipment(e.Shipment.Name, e.Shipment.Cargo));
 }