public void Waiter_Should_Cash_Payment_Of_Meal() { _accounting.Check(_spaghettiMeal, SpaghettiPrice).Returns(ValidPayment); var isPaymentDone = _waiter.Cash(_spaghettiMeal, SpaghettiPrice); Assert.IsTrue(isPaymentDone); _accounting.Received().Check(_spaghettiMeal, SpaghettiPrice); }
public bool Cash(Meal meal, decimal money) { return(_accounting.Check(meal, money)); }