Exemplo n.º 1
0
        public Passanger RegestrationPassanger(string Name, string Telephone, string Email)
        {
            Passanger passanger = new Passanger(Name, Telephone, Email);

            passangerList.Add(passanger);
            return(passanger);
        }
Exemplo n.º 2
0
 public Ticket(Passanger Passanger, int Price, Van Van, Train Train, Seat Seat, string PlaceArrival)
 {
     this.passanger    = Passanger;
     this.price        = Price;
     this.van          = Van;
     this.train        = Train;
     this.seat         = Seat;
     this.placeArrival = PlaceArrival;
 }
Exemplo n.º 3
0
        public Ticket GetTicket(Passanger passanger, Train PickedTrain, Van PickedVan, Seat PickedSeat, string PlaceArrival)
        {
            int price = 46;

            return(new Ticket(passanger, price, PickedVan, PickedTrain, PickedSeat, PlaceArrival));
        }