Feature: Set to one of a list of values
DevFojo opened this issue · comments
Set a property to one of the values from a list. Something like
A.Configure<Apparel>()
.Fill(apparel => apparel.Type,
type => OneOf({"Shirt","Trousers","Dress","Blouse","Skirt"});
This works today as follows;
A.Configure<Apparel>().Fill(apparel => apparel.Type).WithRandom(new []{"Shirt", "Trousers", "Dress", "Blouse", "Skirt"});
@MrFojo This one's baked in already, let us know if you have any questions around it!