public AirwayParser( AirwayType airwayType, SectorElementCollection elements, IEventLogger eventLogger ) { this.airwayType = airwayType; this.elements = elements; this.eventLogger = eventLogger; }
private static AirwaySegment GetAirway(AirwayType type, string startPointIdentifier, string endPointIdentifier) { return(new( "test", type, new Point(startPointIdentifier), new Point(endPointIdentifier), DefinitionFactory.Make(), DocblockFactory.Make(), CommentFactory.Make() )); }
public static AirwaySegment Make(AirwayType type = AirwayType.LOW, string identifier = null) { return(new Faker <AirwaySegment>() .CustomInstantiator( f => new AirwaySegment( identifier ?? $"{(type == AirwayType.HIGH ? "U" : "")}{f.Random.ArrayElement(Identifiers)}", type, PointFactory.Make(), PointFactory.Make(), DefinitionFactory.Make(), DocblockFactory.Make(), CommentFactory.Make() ) )); }
public AirwaySegment( string identifier, AirwayType type, Point startPoint, Point endPoint, Definition definition, Docblock docblock, Comment inlineComment ) : base(definition, docblock, inlineComment) { Identifier = identifier; Type = type; StartPoint = startPoint; EndPoint = endPoint; }