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); }
public static PersonBuilder WorkAs(this PersonBuilder builder, string position) => builder.Do(person => person.Position = position);
public static PersonBuilder WorksAs(this PersonBuilder builder, string position) { return(builder.Do(p => p.Position = position)); }