public void BuyTastiestCandy(ICandyShop shop) { var candy = shop.GetTopSellingCandy(); if (candy != null) { shop.BuyCandy(candy); } }