Esempio n. 1
0
        public ParkingTicket IssueTicket(int vehicleNumber, VehicleType vehicleType, int slotNumber)
        {
            ParkingTicket parkingTicket = new ParkingTicket {
                VehicleNumber = vehicleNumber, VehicleType = vehicleType, SlotNumber = slotNumber
            };

            ParkingTickets.Add(parkingTicket);
            return(parkingTicket);
        }
Esempio n. 2
0
 public void ChangeTicketStatus(ParkingTicket parkingTicket)
 {
     ParkingTickets.Find(ticket => ticket.Equals(parkingTicket)).ChangeExpiryStatus(true);
 }
Esempio n. 3
0
 public void UnParkVehicle()
 {
     Vehicle = null;
     ChangeSlotStatus(true);
     ParkingTicket.ChangeExpiryStatus(true);
 }