예제 #1
0
        public void GetSkinStock(int days)
        {
            IYakStock yakstock;

            foreach (var yak in herd.yaks)
            {
                yakstock = new YakStock(yak);
                for (int i = 0; i < days; i++)
                {
                    yak.Skins += yakstock.GetSkinQuantityPerDay(i);
                }
            }
            herd.Skins = herd.yaks.Sum(i => i.Skins);
        }
예제 #2
0
        public void GetMilkStock(int days)
        {
            IYakStock yakstock;

            foreach (var yak in herd.yaks)
            {
                yakstock = new YakStock(yak);
                for (int i = 0; i < days; i++)
                {
                    yak.Milk += yakstock.GetMilkquantitytPerDay(i);
                }
            }
            herd.MilkStock = herd.yaks.Sum(i => i.Milk);
        }