コード例 #1
0
 private static Faker <Sectorline> GetGenerator(string name = null, List <SectorlineDisplayRule> displayRules = null, Definition definition = null)
 {
     return(new Faker <Sectorline>()
            .CustomInstantiator(
                f => new Sectorline(
                    name ?? f.Random.String2(5),
                    displayRules ?? SectorLineDisplayRuleFactory.MakeList(2),
                    SectorlineCoordinateFactory.MakeList(4),
                    definition ?? DefinitionFactory.Make(),
                    DocblockFactory.Make(),
                    CommentFactory.Make()
                    )
                ));
 }
コード例 #2
0
 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()
                    )
                ));
 }