Last Updated: 22 November 2021
This package contains various fluent style data generators and extension methods for constrained non-determinism in your unit tests, integration tests, general automation projects and mock-ups. These are great for generating values within certain boundaries, or for creating real-world dummy data that will pass validation algorithms.
Bank account number generated by this will pass LUHN checksum and conform to UK bank account standards.
Card numbers will pass the LUHN checksum, and can specifically generate debit or credit card numbers, or ones that meet the validation checks for Visa or Mastercard.
This generates a valid UK six-digit sort code, with or without formatting.
Methods ending in 'Date' will have midnight (00:00:00) as the time portion, ones ending in 'DateTime' will have a random time.
These can be useful when you need a time period with a set start and end date.
This will generate e-mail addresses that will pass most e-mail validation algorithms.
This will generate valid IP v4 addresses.
This will generate a number of the required length, where the last digit is a valid Luhn check digit. This is the algorithm commonly used by bank accounts and credit card numbers, so if the standard UK lengths are not suitable, then use this instead.
These generators will create random names and titles, with the ability to have specific male or female forenames if required.
This will generate a valid UK National Insurance number, with or without formatting.
This will generate a valid UK postcode that is either a genuine postcode somewhere in the country, or one that may not necessarily be real but which passes most standard validation algorithms.
This can generate a landline or mobile telephone number that will pass validation checks.
This will generate a user agent string.