示例#1
0
        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();
        }
示例#2
0
 public PendingState(Reservation res)
 {
     this.res = res;
 }
示例#3
0
 public CancelState(Reservation res)
 {
     this.res = res;
 }
示例#4
0
 public NoShowState(Reservation res)
 {
     this.res = res;
 }