Exemple #1
0
 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()
                    )
                ));
 }