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 Sandwich BuildSandwich() { _builder.CreateSandwich(); _builder.PrepareBread(); _builder.ApplyMeatAndCheese(); _builder.ApplyVegetables(); _builder.AddCondiments(); return(_builder.GetSandwich()); }
///<inheritDoc/> public IDoneSandwich BuildSandwich() { _builder.CreateNewSandwich(); _builder.SandwichName(); _builder.PrepareBread(); _builder.ApplyMeatAndCheese(); _builder.ApplyVegetables(); _builder.AddCondiments(_hasMayo, _hasMustard); return(this); }