public RequestedChanges Append(AddRoadSegmentToEuropeanRoad change) { if (change == null) { throw new ArgumentNullException(nameof(change)); } return(new RequestedChanges( _changes.Add(change), _mapToPermanentNodeIdentifiers, _mapToTemporaryNodeIdentifiers, _mapToPermanentSegmentIdentifiers, _mapToTemporarySegmentIdentifiers, _mapToPermanentGradeSeparatedJunctionIdentifiers, _mapToTemporaryGradeSeparatedJunctionIdentifiers)); }
private RoadNetworkView With(AddRoadSegmentToEuropeanRoad command) { return(new RoadNetworkView( _nodes, _segments, _maximumNodeId, _maximumSegmentId, _maximumGradeSeparatedJunctionId, AttributeId.Max(command.AttributeId, _maximumEuropeanRoadAttributeId), _maximumNationalRoadAttributeId, _maximumNumberedRoadAttributeId, _maximumLaneAttributeId, _maximumWidthAttributeId, _maximumSurfaceAttributeId, _segmentReusableLaneAttributeIdentifiers, _segmentReusableWidthAttributeIdentifiers, _segmentReusableSurfaceAttributeIdentifiers)); }