public void Can_create_normal_pizza()
        {
            var watch = new Stopwatch();
            watch.Start();
            var builder = new PizzaBuilder(new LitePizzaPartFactory());
            builder.AddCrust();
            builder.AddCrust();
            builder.AddCrust();
            builder.AddSouce();
            builder.AddCheese();
            builder.AddCheese();

            var pizza = builder.GetPizza();

            watch.Stop();
            AssertPizzaPartsAreOfType(pizza, "Lite");
            System.Diagnostics.Debug.WriteLine("Got time of {0}", watch.Elapsed);
        }
Exemple #2
0
        public void Can_create_normal_pizza()
        {
            var watch = new Stopwatch();

            watch.Start();
            var builder = new PizzaBuilder(new LitePizzaPartFactory());

            builder.AddCrust();
            builder.AddCrust();
            builder.AddCrust();
            builder.AddSouce();
            builder.AddCheese();
            builder.AddCheese();

            var pizza = builder.GetPizza();

            watch.Stop();
            AssertPizzaPartsAreOfType(pizza, "Lite");
            System.Diagnostics.Debug.WriteLine("Got time of {0}", watch.Elapsed);
        }