public void MakeSandwich() { _builder.CreateNewSandwich(); _builder.PrepareBread(); _builder.ApplyMeatAndCheese(); _builder.ApplyVegetables(); _builder.AddCondiments(); }
public virtual void BuildSandwich() { builder.CreateNewSandwich(); builder.PrepareBread(); builder.ApplyMeatAndCheese(); builder.ApplyVegetables(); builder.AddCondiments(); }
public void buildSandwich() { builder.CreateNewSandwich(); builder.prepareBread(); builder.applyMeatAndCheese(); builder.applyVegetables(); builder.addCondiments(); }
///<inheritDoc/> public IDoneSandwich BuildSandwich() { _builder.CreateNewSandwich(); _builder.SandwichName(); _builder.PrepareBread(); _builder.ApplyMeatAndCheese(); _builder.ApplyVegetables(); _builder.AddCondiments(_hasMayo, _hasMustard); return(this); }
public Sandwich ConstructSandwich(SandwichBuilder sandwichBuilder) { sandwichBuilder.CreateNewSandwich(); sandwichBuilder.SetSandwichType(); sandwichBuilder.AddCondiments(); sandwichBuilder.AddMeat(); sandwichBuilder.AddVeggies(); sandwichBuilder.PrepareSandwich(); return(sandwichBuilder.GetSandwich()); }