public void CountShouldControllTheNumberOfResults() { var range = new api.Controllers.Range { Count = 3 }; var generated = range.Of(() => string.Empty); Assert.Equal(3, generated.Count()); }
public IEnumerable <int> Numbers(Range range) => range.Of(RandomNumber.Next);
public IEnumerable <string> Companies(Range range) => range.Of(Company.Name);
public IEnumerable <string> Names(Range range) => range.Of(Name.FullName);
public IEnumerable <string> PhoneNumbers(Range range) => range.Of(Phone.Number);
public IEnumerable <string> Domains(Range range) => range.Of(Internet.DomainName);
public IEnumerable <string> Emails(Range range) => range.Of(Internet.Email);
public IEnumerable <string> Marketing(Range range) => range.Of(Company.BS);
public IEnumerable <string> CatchPhrases(Range range) => range.Of(Company.CatchPhrase);
public IEnumerable <string> Paragraphs(Range range) => range.Of(() => Lorem.Paragraph(3));