public void MakeSandwich()
 {
     _builder.CreateNewSandwich();
     _builder.PrepareBread();
     _builder.ApplyMeatAndCheese();
     _builder.ApplyVegetables();
     _builder.AddCondiments();
 }
Exemple #2
0
 public virtual void BuildSandwich()
 {
     builder.CreateNewSandwich();
     builder.PrepareBread();
     builder.ApplyMeatAndCheese();
     builder.ApplyVegetables();
     builder.AddCondiments();
 }
Exemple #3
0
 public Sandwich BuildSandwich()
 {
     _builder.CreateSandwich();
     _builder.PrepareBread();
     _builder.ApplyMeatAndCheese();
     _builder.ApplyVegetables();
     _builder.AddCondiments();
     return(_builder.GetSandwich());
 }
Exemple #4
0
 ///<inheritDoc/>
 public IDoneSandwich BuildSandwich()
 {
     _builder.CreateNewSandwich();
     _builder.SandwichName();
     _builder.PrepareBread();
     _builder.ApplyMeatAndCheese();
     _builder.ApplyVegetables();
     _builder.AddCondiments(_hasMayo, _hasMustard);
     return(this);
 }