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); }
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(); }