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

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