コード例 #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
ファイル: Program.cs プロジェクト: cduhard/btw-samples
 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));
 }