Example #1
0
        public static string Message(ReceiveShipmentInCargoBay e)
        {
            // TODO:  Need to fix this now that it uses InventoryShipment shipment instead of parts array.
            //return string.Format(@"Received shipment '{0}' in cargo bay:{1}"
            //        , e.ShipmentName
            //        , e.Parts.Aggregate("", (x, y) => x + string.Format("\r\n{0}:{1}", y.Name, y.Quantity))
            //    );

            return(string.Format(@"Received shipment '{0}' in cargo bay:{1}"
                                 , e.ShipmentName
                                 , "TODO: Need to Show Part In Inventory"
                                 ));
        }
Example #2
0
        public static string Message(ReceiveShipmentInCargoBay e)
        {
            // TODO:  Need to fix this now that it uses InventoryShipment shipment instead of parts array.
            //return string.Format(@"Received shipment '{0}' in cargo bay:{1}"
            //        , e.ShipmentName
            //        , e.Parts.Aggregate("", (x, y) => x + string.Format("\r\n{0}:{1}", y.Name, y.Quantity))
            //    );

            return string.Format(@"Received shipment '{0}' in cargo bay:{1}"
                    , e.ShipmentName
                    , "TODO: Need to Show Part In Inventory"
                );
        }
 public void When(ReceiveShipmentInCargoBay cmd)
 {
     Update(cmd,
            ar =>
            ar.ReceiveShipmentInCargoBay(cmd.ShipmentName, new InventoryShipment(cmd.ShipmentName, cmd.CarParts)));
 }