예제 #1
0
파일: Example.cs 프로젝트: PhillP/NSimulate
        private static WarehouseInventory CreateWarehouseInventory(IEnumerable<Product> products)
        {
            var inventory = new WarehouseInventory();

            // start with an inventory of twice the reorder level of each product
            foreach(var product in products){
                inventory.Add(product, product.ReorderCount * 2);
            }
            return inventory;
        }