Ejemplo n.º 1
0
        public string Main(BreadBuilder breadBuilder)
        {
            Baker baker = new Baker();
            Bread bread = baker.Bake(breadBuilder);

            return(bread.ToString());
        }
Ejemplo n.º 2
0
        public Bread Bake(BreadBuilder breadBuilder)
        {
            breadBuilder.CreateBread();

            breadBuilder.SetName();
            breadBuilder.SetFlour();
            breadBuilder.SetSalt();
            breadBuilder.SetAddivitive();

            return(breadBuilder.Bread);
        }