private RoadNetworkView With(AddRoadNode command) { var node = new RoadNode(command.Id, command.Geometry); return(new RoadNetworkView( _nodes.Add(command.Id, node), _segments, RoadNodeId.Max(command.Id, _maximumNodeId), _maximumSegmentId, _maximumGradeSeparatedJunctionId, _maximumEuropeanRoadAttributeId, _maximumNationalRoadAttributeId, _maximumNumberedRoadAttributeId, _maximumLaneAttributeId, _maximumWidthAttributeId, _maximumSurfaceAttributeId, _segmentReusableLaneAttributeIdentifiers, _segmentReusableWidthAttributeIdentifiers, _segmentReusableSurfaceAttributeIdentifiers)); }
private RoadNetworkView Given(Messages.RoadNodeAdded @event) { var id = new RoadNodeId(@event.Id); var node = new RoadNode(id, GeometryTranslator.Translate(@event.Geometry)); return(new RoadNetworkView( _nodes.Add(id, node), _segments, RoadNodeId.Max(id, _maximumNodeId), _maximumSegmentId, _maximumGradeSeparatedJunctionId, _maximumEuropeanRoadAttributeId, _maximumNationalRoadAttributeId, _maximumNumberedRoadAttributeId, _maximumLaneAttributeId, _maximumWidthAttributeId, _maximumSurfaceAttributeId, _segmentReusableLaneAttributeIdentifiers, _segmentReusableWidthAttributeIdentifiers, _segmentReusableSurfaceAttributeIdentifiers)); }
public RoadNetworkView Given(Messages.ImportedRoadNode @event) { if (@event == null) { throw new ArgumentNullException(nameof(@event)); } var id = new RoadNodeId(@event.Id); var node = new RoadNode(id, GeometryTranslator.Translate(@event.Geometry)); return(new RoadNetworkView( _nodes.Add(id, node), _segments, RoadNodeId.Max(id, _maximumNodeId), _maximumSegmentId, _maximumGradeSeparatedJunctionId, _maximumEuropeanRoadAttributeId, _maximumNationalRoadAttributeId, _maximumNumberedRoadAttributeId, _maximumLaneAttributeId, _maximumWidthAttributeId, _maximumSurfaceAttributeId, _segmentReusableLaneAttributeIdentifiers, _segmentReusableWidthAttributeIdentifiers, _segmentReusableSurfaceAttributeIdentifiers)); }