Exemplo n.º 1
0
 public ArtccParser(
     ArtccType artccType,
     SectorElementCollection elements,
     IEventLogger eventLogger
     )
 {
     this.artccType   = artccType;
     this.elements    = elements;
     this.eventLogger = eventLogger;
 }
 private static ArtccSegment GetArtcc(ArtccType type, string startPointIdentifier, string endPointIdentifier)
 {
     return(new(
                "test",
                type,
                new Point(startPointIdentifier),
                new Point(endPointIdentifier),
                DefinitionFactory.Make(),
                DocblockFactory.Make(),
                CommentFactory.Make()
                ));
 }
Exemplo n.º 3
0
 public static ArtccSegment Make(ArtccType type = ArtccType.REGULAR, string identifier = null)
 {
     return(new Faker <ArtccSegment>()
            .CustomInstantiator(
                _ => new ArtccSegment(
                    identifier ?? "EGTT",
                    type,
                    PointFactory.Make(),
                    PointFactory.Make(),
                    DefinitionFactory.Make(),
                    DocblockFactory.Make(),
                    CommentFactory.Make()
                    )
                ));
 }
Exemplo n.º 4
0
 public ArtccSegment(
     string identifier,
     ArtccType type,
     Point startPoint,
     Point endPoint,
     Definition definition,
     Docblock docblock,
     Comment inlineComment
     )
     : base(definition, docblock, inlineComment)
 {
     Identifier = identifier;
     Type       = type;
     StartPoint = startPoint;
     EndPoint   = endPoint;
 }