private RoadNetworkView Given(Messages.GradeSeparatedJunctionAdded @event) { var id = new GradeSeparatedJunctionId(@event.Id); return(new RoadNetworkView( _nodes, _segments, _maximumNodeId, _maximumSegmentId, GradeSeparatedJunctionId.Max(id, _maximumGradeSeparatedJunctionId), _maximumEuropeanRoadAttributeId, _maximumNationalRoadAttributeId, _maximumNumberedRoadAttributeId, _maximumLaneAttributeId, _maximumWidthAttributeId, _maximumSurfaceAttributeId, _segmentReusableLaneAttributeIdentifiers, _segmentReusableWidthAttributeIdentifiers, _segmentReusableSurfaceAttributeIdentifiers)); }
private RoadNetworkView With(AddGradeSeparatedJunction command) { var id = new GradeSeparatedJunctionId(command.Id); return(new RoadNetworkView( _nodes, _segments, _maximumNodeId, _maximumSegmentId, GradeSeparatedJunctionId.Max(id, _maximumGradeSeparatedJunctionId), _maximumEuropeanRoadAttributeId, _maximumNationalRoadAttributeId, _maximumNumberedRoadAttributeId, _maximumLaneAttributeId, _maximumWidthAttributeId, _maximumSurfaceAttributeId, _segmentReusableLaneAttributeIdentifiers, _segmentReusableWidthAttributeIdentifiers, _segmentReusableSurfaceAttributeIdentifiers)); }
public RoadNetworkView Given(Messages.ImportedGradeSeparatedJunction @event) { if (@event == null) { throw new ArgumentNullException(nameof(@event)); } var id = new GradeSeparatedJunctionId(@event.Id); return(new RoadNetworkView( _nodes, _segments, _maximumNodeId, _maximumSegmentId, GradeSeparatedJunctionId.Max(id, _maximumGradeSeparatedJunctionId), _maximumEuropeanRoadAttributeId, _maximumNationalRoadAttributeId, _maximumNumberedRoadAttributeId, _maximumLaneAttributeId, _maximumWidthAttributeId, _maximumSurfaceAttributeId, _segmentReusableLaneAttributeIdentifiers, _segmentReusableWidthAttributeIdentifiers, _segmentReusableSurfaceAttributeIdentifiers)); }