Exemple #1
0
 string When(TransferShipmentToCargoBay e)
 {
     return(string.Format(@"Transfer shipment '{0}' to cargo bay:{1}"
                          , e.ShipmentName
                          , e.Parts.Aggregate("", (x, y) => x + string.Format("\r\n{0}:{1}", y.Name, y.Quantity))
                          ));
 }
Exemple #2
0
 public void When(TransferShipmentToCargoBay c)
 {
     Update(c,
            ar =>
            ar.TransferShipmentToCargoBay(c.ShipmentName, new InventoryShipment(c.ShipmentName, c.Parts)));
 }