Documentation

The RandomListItem plugin is usefull when you want to choose the output value from a certain set of given values. The RandomListItem will then pick randomly one item from the list.

In the following example are 4 given values in the RandomListItem plugin, one of them will be the generated name of the Person object.

public class Person
{
  public string Name { get; set; }
}

public class HelloFiller
{
  public void FillPerson()
  {
    Filler<Person> pFiller = new Filler<Person>();
    pFiller.Setup()
      .OnType<string>().Use(new RandomListItem<string>("Jennifer", "Jenny", "Tom", "John"));

    Person filledPerson = pFiller.Create();
  }
}