Esempio n. 1
0
        public void IfQualityIsComprised_ThenCustomerIsNotified()
        {
            var pizzaMaker = new PizzaMaker();

            pizzaMaker.AddStep(MakeDough);
            pizzaMaker.AddStep(RollDough);
            pizzaMaker.AddStep(AddToppings);
            pizzaMaker.AddStep(AddCockroach);
            pizzaMaker.AddStep(Bake);
            pizzaMaker.AddStep(CheckQuality);
            pizzaMaker.AddStep(Deliver);
            pizzaMaker.Make();

            Assert.That(_customerNotified, Is.True);
        }
Esempio n. 2
0
        public void PizzaCanBeDelivered()
        {
            var pizzaMaker = new PizzaMaker();

            pizzaMaker.AddStep(MakeDough);
            pizzaMaker.AddStep(RollDough);
            pizzaMaker.AddStep(AddToppings);
            pizzaMaker.AddStep(Bake);
            pizzaMaker.AddStep(CheckQuality);
            pizzaMaker.AddStep(Deliver);
            pizzaMaker.Make();

            AssertPizzaIsMade();
        }