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