Exemplo n.º 1
0
        public static void PutTicket(this TicketBox box, string name)
        {
            NormalTicket ticket = new NormalTicket(name);

            box.Put(ticket);
        }
Exemplo n.º 2
0
        public static void PutExpiryTicket(this TicketBox box, string name, DateTime expiration)
        {
            ExpiryTicket ticket = new ExpiryTicket(name, expiration);

            box.Put(ticket);
        }
Exemplo n.º 3
0
        public static void PutLimitedTicket(this TicketBox box, string name, int count)
        {
            LimitedUseTicket ticket = new LimitedUseTicket(name, count);

            box.Put(ticket);
        }