public static Faker <RegionPoint> GetGenerator(string colour = null, Point point = null) { return(new Faker <RegionPoint>().CustomInstantiator( _ => new RegionPoint( point ?? PointFactory.Make(), DefinitionFactory.Make(), DocblockFactory.Make(), CommentFactory.Make(), colour ?? "red" ) )); }
private static Faker <GeoSegment> GetGenerator(string colour = null, Point firstPoint = null, Point secondPoint = null) { return(new Faker <GeoSegment>() .CustomInstantiator( _ => new GeoSegment( firstPoint ?? PointFactory.Make(), secondPoint ?? PointFactory.Make(), colour ?? "red", 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 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() ) )); }