private double ResolvePrice(OrderPosition orderItem) { var price = menu.GetPizzaPrice(orderItem.PizzaName); var pricePerPiece = price.Value / 8.0; return(orderItem.Pieces * pricePerPiece); }
internal void Add(OrderPosition orderPosition) { _items.Add(orderPosition); }