private IRover MapCoordinates(IRover rover)
 {
     Type roverType = rover.GetType();
     return (IRover)Activator.CreateInstance(
         roverType,
         Planet.ConvertXCoordinate(rover.X),
         Planet.ConvertYCoordinate(rover.Y));
 }
        private IRover MapCoordinates(IRover rover)
        {
            Type roverType = rover.GetType();

            return((IRover)Activator.CreateInstance(
                       roverType,
                       Planet.ConvertXCoordinate(rover.X),
                       Planet.ConvertYCoordinate(rover.Y)));
        }