public void BuyTastiestCandy(ICandyShop shop) { var candy = shop.GetTopSellingCandy(); if (candy != null) { shop.BuyCandy(candy); } }
public Developer(ICandyShop candyShop) { this.candyShop = candyShop; }
public Vendor() { Shop = new CandyShop.Model.CandyShop(); }
internal void BuyTastiestCandy(ICandyShop shop) { shop.BuyCandy(Favorite); }
internal void BuyTastiestCandy(ICandyShop shop) { throw new NotImplementedException(); }