示例#1
0
 public void Bake(BreadBuilder breadBuilder)
 {
     breadBuilder.SetWheatFlour();
     breadBuilder.SetRyeFlour();
     breadBuilder.SetSalt();
     breadBuilder.SetAdditives();
 }
 public static Bread Bake(BreadBuilder breadBuilder)
 {
     breadBuilder.CreateBread();
     breadBuilder.SetFlour();
     breadBuilder.SetSalt();
     breadBuilder.SetAdditives();
     return(breadBuilder.Bread);
 }
示例#3
0
 public void Bake()
 {
     _builder.SetSalt();
     _builder.SetFlour();
     _builder.SetAdditives();
 }