Example #1
0
 public Parent(Name name, RelationEnumeration relation)
 {
     Name     = name;
     Relation = relation;
 }
Example #2
0
 public static Faker <Parent> Get()
 {
     return(new Faker <Parent>().CustomInstantiator(f => new Parent(new Name(f.Person.FirstName, f.Person.LastName),
                                                                    f.PickRandom(RelationEnumeration.GetAll()))));
 }