public override void MakePayment()
 {
     Copier.ResponseWriter($"Payment successfully processed.{Environment.NewLine}");
     Copier.CopierState = new ChoosingDevice(Copier);
 }
Ejemplo n.º 2
0
 public override void PrintDocument()
 {
     Copier.ResponseWriter($"Document printed successfully.{Environment.NewLine}");
     Copier.CopierState = new ChoosingDocument(Copier);
 }
 public override void ReturnChange()
 {
     Copier.ResponseWriter($"Change returned successfully.{Environment.NewLine}");
     Copier.CopierState = new WaitingForPayment(Copier);
 }
Ejemplo n.º 4
0
 public override void ChooseDocument()
 {
     Copier.ResponseWriter($"Document chosen successfully.{Environment.NewLine}");
     Copier.CopierState = new PrintingDocument(Copier);
 }