public string Main(BreadBuilder breadBuilder) { Baker baker = new Baker(); Bread bread = baker.Bake(breadBuilder); return(bread.ToString()); }
public Bread Bake(BreadBuilder breadBuilder) { breadBuilder.CreateBread(); breadBuilder.SetName(); breadBuilder.SetFlour(); breadBuilder.SetSalt(); breadBuilder.SetAddivitive(); return(breadBuilder.Bread); }