static void Main(string[] args) { Reservation r = new Reservation(); Thread.Sleep(1500); r.NoshowRezervation();//olmayacak Thread.Sleep(1500); r.ConfirmRezervation(); Thread.Sleep(1500); r.NoshowRezervation(); Thread.Sleep(1500); r.CancelRezervation(); Thread.Sleep(1500); r.PendingRezervation(); Console.ReadLine(); }
public PendingState(Reservation res) { this.res = res; }
public CancelState(Reservation res) { this.res = res; }
public NoShowState(Reservation res) { this.res = res; }