public void ChangeState(IOrderState orderState) { if (!orderState.CanDo()) { throw new NotImplementedException("Cannot"); } var order = orderState.State(); //Save order Console.WriteLine("Save order"); }
public void ChangeState(IOrderState orderState) { if (!orderState.CanDo()) { throw new NotImplementedException("Cannot"); } var order = orderState.State(); //Save order Console.WriteLine("Save order"); }