Пример #1
0
        public void RestoreProductOnStation(Product product, string stationName)
        {
            IStation station = this.lineStations.FirstOrDefault(p => p.Name.Equals(stationName));

            if (station != null)
            {
                station.AddProduct(product);
            }
        }
Пример #2
0
        private bool sendProductToStation(Product product, IStation station)
        {
            bool result = false;

            if (station != null && product != null)
            {
                result = station.AddProduct(product);
            }
            return(result);
        }