Beispiel #1
0
 public SandwichBuilder With(IngredientDto ingredient)
 {
     sandwich.Ingredients.Add(ingredient);
     return(this);
 }
Beispiel #2
0
 public SandwichBuilder Without(IngredientDto ingredient)
 {
     sandwich.Ingredients.Remove(ingredient);
     return(this);
 }
Beispiel #3
0
 public SandwichBuilder WithBread(IngredientDto bread)
 {
     sandwich.Bread = bread;
     return(this);
 }