public IPizza createPizza(string pizzaType) { IPizza pizza = null; if(pizzaType.Equals("cheese", StringComparison.CurrentCultureIgnoreCase)) { pizza = new CheesePizza(ingredientFactory); pizza.name = "NY Cheese Pizza"; } return pizza; }