public void BuyTastiestCandy(ICandyShop shop)
        {
            var candy = shop.GetTopSellingCandy();

            if (candy != null)
            {
                shop.BuyCandy(candy);
            }
        }
示例#2
0
 public Developer(ICandyShop candyShop)
 {
     this.candyShop = candyShop;
 }
示例#3
0
 public Vendor()
 {
     Shop = new CandyShop.Model.CandyShop();
 }
示例#4
0
 internal void BuyTastiestCandy(ICandyShop shop)
 {
     shop.BuyCandy(Favorite);
 }
示例#5
0
 internal void BuyTastiestCandy(ICandyShop shop)
 {
     throw new NotImplementedException();
 }