Ejemplo n.º 1
0
 public static void ReturnChange(Sale sale, Payment payment)
 {
     _stateMachine.FireTrigger(sale, SaleEvent.ChangeGiven, payment);
 }
Ejemplo n.º 2
0
 public static void AddPayment(Sale sale, Payment payment)
 {
     _stateMachine.FireTrigger(sale, SaleEvent.Pay, payment);
 }