//Injecting ParkingSpots to ParkingLot public ParkingLot(IEnumerable <ParkingSpot> parkingSpots, ISpotSearchService spotSearchService) { if (parkingSpots == null || !parkingSpots.Any() || spotSearchService == null) { throw new ApplicationException("Invalid parking lot setup"); } _parkingSpots = parkingSpots; _spotSearchService = spotSearchService; }
public void SetUp() { _svc = new SpotSearchService(); }