Esempio n. 1
0
        private int GetQuantityToProcess(Batch batch)
        {
            bool enoughQuantityInBatch = remainingQuantity <= batch.Quantity;

            return(enoughQuantityInBatch ? remainingQuantity : batch.Quantity);
        }
 public void CheckIn(Batch batch, string warehouse)
 {
     warehousesBatches.Add(warehouse, batch);
 }