public void Waiter_Should_Serve_Meal() { _cook.Prepare(Spaghetti).Returns(_spaghettiMeal); var actualMeal = _waiter.Serve(Spaghetti); Assert.AreEqual(_spaghettiMeal, actualMeal); _cook.Received().Prepare(Spaghetti); }
public Meal Serve(Menu menu) { return(_cook.Prepare(menu)); }