public void Execute() { var roverPosition = _marsRoverService.GetCurrentRover(); roverPosition.Direction = _directionManagerStrategy.RotateRight(roverPosition.Direction); _marsRoverService.ChangePosition(roverPosition); }
public void Execute() { var roverPosition = _marsRoverService.GetCurrentRover(); _directionManagerStrategy.MoveForward(roverPosition); _marsRoverService.ChangePosition(roverPosition); }