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