public void LandRover(RoverPosition landingCoordinates) { if (!CoordinatesAreWithinLimits(landingCoordinates)) throw new ArgumentOutOfRangeException("landingCoordinates"); Rover newRover = new Rover(this, landingCoordinates); Rovers.Add(newRover); }
private void InitializeRoverBottomLeft() { LandingArea _plateau = new LandingArea(10, 10); RoverPosition landingCoordinates = new RoverPosition(1, 1, RoverPosition.Direction.N); _plateau.LandRover(landingCoordinates); _testRover = _plateau.Rovers.FirstOrDefault(); }