public EastFacingMover( BoundedPosition boundedPosition, FacingTracker facingTracker) { _boundedPosition = boundedPosition; _facingTracker = facingTracker; }
MarsRover( Direction initialDirection, BoundedPosition boundedPosition) { _facingTracker = FacingTracker.SetDirection(initialDirection); _boundedPosition = boundedPosition; _movers = new Dictionary <Direction, ISpecificDirectionMover> { { Direction.N, new NorthFacingMover(_boundedPosition, _facingTracker) }, { Direction.S, new SouthFacingMover(_boundedPosition, _facingTracker) }, { Direction.E, new EastFacingMover(_boundedPosition, _facingTracker) }, { Direction.W, new WestFacingMover(_boundedPosition, _facingTracker) }, }; }