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() ) )); }
private static Faker <SectorGuest> GetGenerator( string controllerIdentifier = null, string firstAirport = null, string secondAirport = null ) { return(new Faker <SectorGuest>() .CustomInstantiator( _ => new SectorGuest( controllerIdentifier ?? ControllerPositionFactory.GetIdentifier(), firstAirport ?? AirportFactory.GetRandomDesignator(), secondAirport ?? AirportFactory.GetRandomDesignator(), DefinitionFactory.Make(), DocblockFactory.Make(), CommentFactory.Make() ) )); }
public static Runway Make(string airfieldIcao = null, string designator1 = null, string designator2 = null) { return(new Faker <Runway>() .CustomInstantiator( f => new Runway( airfieldIcao ?? AirportFactory.GetRandomDesignator(), designator1 ?? f.Random.ArrayElement(Designators), 000, CoordinateFactory.Make(), designator2 ?? f.Random.ArrayElement(Designators), 000, CoordinateFactory.Make(), DefinitionFactory.Make(), DocblockFactory.Make(), CommentFactory.Make() ) )); }