public void BuildSandwich()
 {
     builder.CreateNewSandwich();
     builder.PrepareBread();
     builder.ApplyMeatAndCheese();
     builder.ApplyVegetables();
     builder.AddCondiments();
 }
Пример #2
0
 public Sandwich CreateSandwich()
 {
     _Builder.PrepareBread();
     _Builder.ApplyMeatAndCheese();
     _Builder.ApplyVegetables();
     _Builder.ApplyCondiments();
     return(_Builder.GetSandwich());
 }