private static Faker <SectorlineDisplayRule> GetGenerator(string controlledSector = null, string firstCompare = null, string secondCompare = null) { return(new Faker <SectorlineDisplayRule>() .CustomInstantiator( f => new SectorlineDisplayRule( controlledSector ?? f.Random.String2(4), firstCompare ?? f.Random.String2(4), secondCompare ?? f.Random.String2(4), 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 Airport Make(string icao = null) { return(new Faker <Airport>() .CustomInstantiator( f => new Airport( f.Random.String2(10), icao ?? GetRandomDesignator(), CoordinateFactory.Make(), "123.450", DefinitionFactory.Make(), DocblockFactory.Make(), CommentFactory.Make() ) )); }
private static Faker <SectorBorder> GetGenerator() { return(new Faker <SectorBorder>() .CustomInstantiator( _ => new SectorBorder( new List <string>() { "abc", "def", "ghi" }, DefinitionFactory.Make(), DocblockFactory.Make(), CommentFactory.Make() ) )); }
public static RouteSegment MakeDoublePoint(string identifier1 = null, string identifier2 = null, string colour = null) { return(new Faker <RouteSegment>() .CustomInstantiator( f => new RouteSegment( f.Random.String2(4), new Point(identifier1 ?? f.Random.ArrayElement(Identifiers)), new Point(identifier2 ?? f.Random.ArrayElement(Identifiers)), DefinitionFactory.Make(), DocblockFactory.Make(), CommentFactory.Make(), colour ?? ColourFactory.RandomIdentifier() ) )); }
private static Faker <CircleSectorline> GetGenerator(string name = null, string centre = null, List <SectorlineDisplayRule> displayRules = null, Definition definition = null) { return(new Faker <CircleSectorline>() .CustomInstantiator( f => new CircleSectorline( name ?? f.Random.String2(5), centre ?? f.Random.String2(4), f.Random.Double(0.5D, 10D), displayRules ?? SectorLineDisplayRuleFactory.MakeList(2), definition ?? DefinitionFactory.Make(), DocblockFactory.Make(), CommentFactory.Make() ) )); }
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() ) )); }
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 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 <Region> GetGenerator( string colour = null, List <Point> points = null, Definition definition = null ) { return(new Faker <Region>() .CustomInstantiator( _ => new Region( "REGION TEST", points == null ? RegionPointFactory.MakeList(2, colour) : points.Select(p => RegionPointFactory.Make(colour, p)).ToList(), definition ?? 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 Label Make( string text = null, string colour = null, Definition definition = null ) { return(new Faker <Label>() .CustomInstantiator( _ => new Label( text ?? "Test Label", CoordinateFactory.Make(), colour ?? ColourFactory.RandomIdentifier(), definition ?? 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() ) )); }
public static GroundNetworkRunwayExit Make(string runway = null) { return(new Faker <GroundNetworkRunwayExit>() .CustomInstantiator( faker => new GroundNetworkRunwayExit( runway ?? "27L", "N3W", faker.Random.ArrayElement(new [] { "LEFT", "RIGHT" }), 15, new List <GroundNetworkCoordinate> { GroundNetworkCoordinateFactory.Make(), GroundNetworkCoordinateFactory.Make(), GroundNetworkCoordinateFactory.Make() }, DefinitionFactory.Make(), DocblockFactory.Make(), CommentFactory.Make() ) )); }
public static GroundNetworkTaxiway Make() { return(new Faker <GroundNetworkTaxiway>() .CustomInstantiator( _ => new GroundNetworkTaxiway( "A", 15, 1, "15", new List <GroundNetworkCoordinate> { GroundNetworkCoordinateFactory.Make(), GroundNetworkCoordinateFactory.Make(), GroundNetworkCoordinateFactory.Make() }, DefinitionFactory.Make(), DocblockFactory.Make(), CommentFactory.Make() ) )); }
public static Geo Make( string colour = null, List <GeoSegment> additionalSegments = null, Point firstPoint = null, Point secondPoint = null, Definition definition = null ) { return(new Faker <Geo>() .CustomInstantiator( _ => new Geo( "GEO TEST", firstPoint ?? PointFactory.Make(), secondPoint ?? PointFactory.Make(), colour ?? "red", additionalSegments ?? GeoSegmentFactory.MakeList(2), definition ?? DefinitionFactory.Make(), DocblockFactory.Make(), CommentFactory.Make() ) )); }
public static SidStarRoute Make( SidStarType type = SidStarType.SID, List <RouteSegment> segments = null, Definition definition = null ) { return(new Faker <SidStarRoute>() .CustomInstantiator( _ => new SidStarRoute( type, "SID STAR ROUTE", RouteSegmentFactory.MakeDoublePoint(), segments ?? new List <RouteSegment>() { RouteSegmentFactory.MakeDoublePoint(), RouteSegmentFactory.MakePointCoordinate(), RouteSegmentFactory.MakeCoordinatePoint() }, definition ?? DefinitionFactory.Make(), DocblockFactory.Make(), CommentFactory.Make() ) )); }