Esempio n. 1
0
 public void ShipSuppliesToCargoBay(string shipment, CarPart[] parts)
 {
 }
Esempio n. 2
0
 public void TransferShipmentToCargoBay(string shipmentName, CarPart[] parts)
 {
     // CheckIfCargoBayHasFreeSpace(parts);
     // DoRealWork("unloading supplies...");
     // DoPaperWork("Signing that shipment acceptance form");
     // RecordThatSuppliesAreAvailableInCargoBay()
 }
Esempio n. 3
0
            public void TransferShipmentToCargoBay(string shipmentName, CarPart[] parts)
            {
                Print("?> Command: transfer shipment to cargo bay");
                if (_ourListOfEmployeeNames.Count == 0)
                {
                    Fail(":> There has to be somebody at factory in order to accept shipment");
                    return;
                }

                if (_shipmentsWaitingToBeUnloaded.Count> 2)
                {
                    Fail(":> More than two shipments can't fit into this cargo bay :(");
                    return;
                }

                DoRealWork("opening cargo bay doors");
                RecordThat(new ShipmentTransferredToCargoBay()
                    {
                        ShipmentName = shipmentName,
                        CarParts = parts
                    });

                var totalCountOfParts = parts.Sum(p => p.Quantity);
                if (totalCountOfParts > 10)
                {
                    RecordThat(new CurseWordUttered
                        {
                            TheWord = "Boltov tebe v korobky peredach",
                            Meaning = "awe in the face of the amount of parts delivered"
                        });
                }
            }
Esempio n. 4
0
 public void TransferShipmentToCargoBay(string shipmentName, CarPart[] parts)
 {
 }