SequenceGenerator Plugins

Documentation

The ObjectFiller contains also tons of sequence generators, like the SequenceGeneratorInt32 or the SequenceGeneratorDateTime. When used without any particular setup, they will simply create an increasing sequence like [1,2,3,...]. Most of these sequence generators can be customized to use a different start value (From), a different increment (Step) or can even wrap around after hitting an end value (To). The Step property can be even set to a negative value to generate a decreasing sequence, like in the example below.
public void Countdown()
{
  var generator = new SequenceGeneratorInt32
  									 { From = 3, Step = -3 };
  
  generator.GetValue(); // returns  3
  generator.GetValue(); // returns  0
  generator.GetValue(); // returns -3
  generator.GetValue(); // returns -6
}