public LaneCornerRoadInformation( LaneCorner laneCorner )
 {
     Contract.Requires( laneCorner != null );
     this._laneCorner = laneCorner;
 }
 private void SetRouteElement( IRoadElement element )
 {
     var laneCorner = element as LaneCorner;
     if ( laneCorner == null ) { throw new ArgumentException( "Wrong road element" ); }
     this._laneCorner = laneCorner;
 }
 public void Build( BuilderContext context, IControl control )
 {
     var roadConnection = (RoadConnection) control;
     this._lane = new LaneCorner( roadConnection, l => context.RoadInformationFactory.Create( l ) );
     context.AddElement( roadConnection, this._lane );
 }