示例#1
0
 public ApprovedState(OrderState orderState)
 {
     _orderState = orderState;
     Approve();
 }
 public RegisteredState(OrderState orderState)
 {
     _orderState = orderState;
     Register();
 }
 public DispatchedState(OrderState orderState)
 {
     _orderState = orderState;
     Dispatch();
 }
示例#4
0
 public NewOrder(OrderState orderState)
 {
     _orderState = orderState;
     NewOrderPlaced();
 }