public static CoordinationPoint MakeAirport( bool firCopx = false, string departureAirport = null, string departureRunway = null, string arrivalAirport = null, string arrivalRunway = null ) { return(new Faker <CoordinationPoint>() .CustomInstantiator( _ => new CoordinationPoint( firCopx, departureAirport ?? AirportFactory.GetRandomDesignator(), departureRunway ?? RunwayFactory.GetRandomDesignator(), FixFactory.RandomIdentifier(), arrivalAirport ?? AirportFactory.GetRandomDesignator(), arrivalRunway ?? RunwayFactory.GetRandomDesignator(), "AB", "CD", "6000", null, "TEST", DefinitionFactory.Make(), DocblockFactory.Make(), CommentFactory.Make() ) )); }
public static CoordinationPoint Make( bool firCopx = false, string coordinationPoint = null, string priorPoint = null, string nextPoint = null, string fromSector = null, string toSector = null, Definition definition = null ) { return(new Faker <CoordinationPoint>() .CustomInstantiator( _ => new CoordinationPoint( firCopx, priorPoint ?? FixFactory.RandomIdentifier(), "", coordinationPoint ?? FixFactory.RandomIdentifier(), nextPoint ?? FixFactory.RandomIdentifier(), "", fromSector ?? "AB", toSector ?? "CD", "6000", null, "TEST", definition ?? DefinitionFactory.Make(), DocblockFactory.Make(), CommentFactory.Make() ) )); }
public static SidStar Make(bool isSid = true, string airport = null, string runway = null, string identifier = null, List <string> route = null) { return(new Faker <SidStar>() .CustomInstantiator( f => new SidStar( isSid ? "SID" : "STAR", airport ?? AirportFactory.GetRandomDesignator(), runway ?? RunwayFactory.GetRandomDesignator(), identifier ?? f.Random.ArrayElement(Identifiers), route ?? FixFactory.RandomIdentifiers(3), DefinitionFactory.Make(), DocblockFactory.Make(), CommentFactory.Make() ) )); }