uk.gov.hmrc.domain.NinoGenerator
See theNinoGenerator companion object
case class NinoGenerator(random: Random) extends Modulus23Check
A generator that should be used Only for Testing!
Rules for the Nino: https://en.wikipedia.org/wiki/National_Insurance_number#Format
Generates a Nino from a random seed. You can use a specific seed to generate a Nino so it is going to be more predictable.
Attributes
- Example
-
NinoGenerator(seed).nextNino.nino
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Modulus23Checktrait ModulusCheckclass Objecttrait Matchableclass Any
Members list
In this article