VrnGenerator

uk.gov.hmrc.domain.VrnGenerator
See theVrnGenerator companion object
case class VrnGenerator(random: Random)

A generator that should be used Only for Testing!

Rules for the VRN: https://design.tax.service.gov.uk/hmrc-design-patterns/vat-registration-number/

Generates a VRN from a random seed. You can use a specific seed to generate a VRN so it is going to be more predictable.

Attributes

Example

VrnGenerator(seed).nextVrn.vrn

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def nextVrn: Vrn

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product