ContinueToNextState() private method

private ContinueToNextState ( AbstractDeliveryState NextState ) : void
NextState AbstractDeliveryState
return void
Ejemplo n.º 1
0
 public override void Continue()
 {
     NextState = new InTranzitState(product_on_the_way.product);
     Console.WriteLine("Product is now in custody of courier");
     product_on_the_way.ContinueToNextState(NextState);
 }
Ejemplo n.º 2
0
 public override void Continue()
 {
     NextState = new DelieveredState(product_on_the_way.product);
     Console.WriteLine("Product is currently in tranzit");
     product_on_the_way.ContinueToNextState(NextState);
 }
Ejemplo n.º 3
0
 public override void Continue()
 {
     NextState = new DelieveredState(product_on_the_way.product);
     Console.WriteLine("Product has been delivered to client");
     product_on_the_way.ContinueToNextState(NextState);
 }