public Turtle GetTurtle() { return(Parse(() => { var line = ReadLine(4); var arr = line.Split(' '); Throw.If <Exception>(() => arr.Length != 3); var positionX = int.Parse(arr[0]); var positionY = int.Parse(arr[1]); var direction = (DirectionType)Enum.Parse(typeof(DirectionType), arr[2]); return _turtleFactory.Create(positionX, positionY, direction); })); }