Esempio n. 1
0
 public static PersonBuilder WorkAsA(this PersonBuilder builder, string position)
 {
     // builder.Actions.Add(p =>
     // {
     //     p.Position = position;
     //     return p;
     // });
     builder.Do(p => p.Position = position);
     return(builder);
 }
Esempio n. 2
0
 public static PersonBuilder WorkAs(this PersonBuilder builder, string position)
 => builder.Do(person => person.Position = position);
Esempio n. 3
0
 public static PersonBuilder WorksAs(this PersonBuilder builder, string position)
 {
     return(builder.Do(p => p.Position = position));
 }