Exemplo n.º 1
0
        static void Main(string[] args)
        {
            var subway = SandwichRecipeBuilder.CreateNew("BBQ Rib")
                         .InBread(BreadType.HoneyOat)
                         .WithProtein("Rib")
                         .WithOnions()
                         .WithLetuce()
                         .Build();

            Console.WriteLine(subway);

            Console.ReadKey();
        }
Exemplo n.º 2
0
 public SubwaySandwich(SandwichRecipeBuilder sandwichRecipe)
 {
     this._sandwichRecipe = sandwichRecipe;
 }