-
Notifications
You must be signed in to change notification settings - Fork 24
GG-8781 domain : add missing generators to test jar #58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
moving the shared lib into the domain-play-30 as we now only support the play3. Adding the domain-test-play-30 to contain the generators so other projects can import it.
|
updates the README with the new examples, syntax
|
| * @example | ||
| * NinoGenerator(seed).nextNino.nino | ||
| */ | ||
| case class NinoGenerator(private val random: Random = new Random) extends Modulus23Check { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just confirming that Nino generator follows these rules:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it is generating valid ninos that conforms the rules on the wikipedia page. Here is most of the code that does that: https://github.com/hmrc/domain/blob/GG-8781/domain-play-30/src/main/scala/uk/gov/hmrc/domain/Nino.scala#L49
restructuring the library's modules
moving the shared lib into the domain-play-30 as we now only support the play3. Adding the domain-test-play-30 to contain the generators so other projects can import it.