Example #1
0
        public void NotifyVegetablesToReplenish()
        {
            IEnumerable <VegetableQuantity> vegetablesToReplenish = this.vegetableManager.ListOfVegetablesToReplenish();

            foreach (var vegetableQuantity in vegetablesToReplenish)
            {
                // Assume Order Has Been Placed and Recieved
                notifier.NotifyAboutVegetableRefilled(vegetableQuantity.vegetable.name);
            }
        }
 public void OrderVegetable(string vegetableName, double quantity)
 {
     //order placed
     notifier.NotifyAboutVegetableRefilled(vegetableName);
 }