// Homework void AnnounceInsideFactory(ShipmentUnloadedFromCargoBay theEvent) { // TODO: See Inventory refactoring notes. // Rule: when we unload shipments from cargo bay then all shipments that are already // stored in the cargo bay are considered unloaded // this means that they are available to the factory for use in the production of cars. // This means that all the parts added to // ShipmentsWaitingToBeUnloaded by the ShipmentTransferredToCargoBay event are now 100% // available for use. // We do NOT want to clear this list in this example because it BECOMES // the available inventory. // TODO: Should probably use diff vars to represent // "stuff waiting to be unloaded" vs "stuff that has been unloaded" // ShipmentsWaitingToBeUnloaded.Clear(); // Can uncomment line below to test that cars can't be built // without inventory of parts // ShipmentsWaitingToBeUnloaded.Clear(); // Rule: an employee can only unload the cargo bay once a day // so remember who just did it EmployeesWhoHaveUnloadedCargoBayToday.Add(theEvent.EmployeeName); }