Exemplo n.º 1
0
 public Ticket(PlateNumber carPlante, ParkingLotID parkingLotID)
     : base(new TicketID(Guid.NewGuid().ToString()))
 {
     IsValid      = true;
     CarPlante    = carPlante;
     ParkingLotID = parkingLotID;
 }
Exemplo n.º 2
0
 public ParkingLot(int totalPosition)
 {
     ID = new ParkingLotID(Guid.NewGuid().ToString());
     AvailableSpaces = totalPosition;
     parkedCars      = new Dictionary <Ticket, Car>();
 }