예제 #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();
 }