public GarageFloor GetFloorFromSpace(ParkingSpace space) { return(FloorList.Find(f => f.ParkingSpaces.Contains(space))); }
public bool CanFitInSpace(ParkingSpace parkingSpace) { return(Dimensions.GetWidth() <= parkingSpace.GetDimensions().GetWidth() && Dimensions.GetLength() <= parkingSpace.GetDimensions().GetLength() && Dimensions.GetHeight() <= parkingSpace.GetDimensions().GetHeight()); }
public void AddSpace(ParkingSpace parkingSpace) { ParkingSpaces.Add(parkingSpace); }