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() ) )); }
private static Faker <SectorActive> GetGenerator(string airport = null, string runway = null) { return(new Faker <SectorActive>() .CustomInstantiator( _ => new SectorActive( airport ?? AirportFactory.GetRandomDesignator(), runway ?? RunwayFactory.GetRandomDesignator(), DefinitionFactory.Make(), DocblockFactory.Make(), CommentFactory.Make() ) )); }
public static ActiveRunway Make(string airfieldIcao = null, string runwayDesignator = null, int?mode = null) { return(new Faker <ActiveRunway>() .CustomInstantiator( f => new ActiveRunway( runwayDesignator ?? RunwayFactory.GetRandomDesignator(), airfieldIcao ?? AirportFactory.GetRandomDesignator(), mode ?? (f.Random.Bool() ? 1 : 0), 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() ) )); }