Exemplo n.º 1
0
        public override string ToString()
        {
            var sizeName  = Size.ToLower().Replace("size", string.Empty);
            var crustName = Crust.ToLower().Replace("crust", string.Empty);

            var sauceName  = Sauce.ToLower().Replace("sauce", string.Empty) + " sauce";
            var cheeseName = Cheese.ToLower().Replace("cheese", string.Empty) + " cheese";

            return($"It is of {sizeName} size with {crustName} crust, {sauceName}, {cheeseName}, {ToppingsToString()} as toppings.");
        }