예제 #1
0
        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);
        }
예제 #2
0
 public bool Cash(Meal meal, decimal money)
 {
     return(_accounting.Check(meal, money));
 }