public IParkingSlot FindParking(VehicleBase vehicle) { IParkingLocator parkingLocator = _parkingLocatorProvider.LocateService(vehicle); IParkingSlot availableParkingSlots = parkingLocator.LocateFreeSlots(vehicle); return(availableParkingSlots); }
public void DeallocateParkingSlot(VehicleBase vehicle) { _bookingTracker.MarkVacant(vehicle); }
public void AllocateParkingSlot(VehicleBase vehicle, IParkingSlot parkingSlot) { parkingSlot.MarkedOccupied(vehicle); _bookingTracker.MarkBooked(vehicle, parkingSlot); }