public IItem AddTopping(Topping topping) { _toppings.Add(topping); return(new Item(_name, _basePrice, _toppings)); }
public void ShouldReturnToppingPriceForLarge() { Topping topping = new Topping("cheese", .15d); topping.Price(18.0d).Should().Be(2.70d); }
public void ShouldAddToDescription() { Topping topping = new Topping("cheese", .15d); topping.AddToDescription("base with").Should().Be("base with cheese"); }
public void ShouldReturnToppingPriceForMedium() { Topping topping = new Topping("cheese", .15d); topping.Price(15d).Should().Be(2.25d); }