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