public void CreateTwoQuateroFormaggiPizza()
 {
     var alfredo = new AlfreddosPlace();
     var quatro = alfredo.MakeQuatroFormaggi();
     var quatro2 = alfredo.MakeQuatroFormaggi();
     Assert.AreEqual(quatro.ToString(), quatro2.ToString());
 }
        public void CreateAlfreddoCalzonePizza()
        {
            var alfredo = new AlfreddosPlace();
            var calzone = alfredo.MakeCalzonePizza();

            Assert.That(calzone.ToString(), Contains.Substring("Calzone made by"));
            Assert.That(calzone.ToString(), Contains.Substring("ham"));
        }
        public void CretePizzaViaOnlineCompany()
        {
            var alfredo = new AlfreddosPlace();
            var luidji = new LuidjiSpagettiPlace();

            var onlinePizzaPlace = new OnlineDeliveryCompany(alfredo, luidji);
            var peperoni = onlinePizzaPlace.MakePeperoni();
            var carbonara = onlinePizzaPlace.MakeCarbonara();

            Assert.That(peperoni.ToString(), Contains.Substring("Peperoni"));
        }
        public static void Main()
        {
            var alfredo = new AlfreddosPlace();
            var luidji = new LuidjiSpagettiPlace();

            var onlinePizzaPlace = new OnlineDeliveryCompany(alfredo, luidji);
            var peperoni = onlinePizzaPlace.MakePeperoni();
            var carbonara = onlinePizzaPlace.MakeCarbonara();

            Console.WriteLine(peperoni);
            Console.WriteLine(carbonara);
        }
Ejemplo n.º 5
0
        public static void Main()
        {
            var pizzaPlace = new AlfreddosPlace(); // new PizzaExtraordinaire();
            var yamYam = new OnlineDeliveryCompany(pizzaPlace);

            var cheesePizza = yamYam.DeliverCheesePizza();
            Console.WriteLine(cheesePizza.ToString());

            var calzone = yamYam.DeliverCalzone();
            Console.WriteLine(calzone.ToString());

            var pepperoniPizza = yamYam.DeliverPepperoniPizza();
            Console.WriteLine(pepperoniPizza.ToString());
        }