EoriGenerator

uk.gov.hmrc.domain.EoriGenerator
See theEoriGenerator companion object
case class EoriGenerator(random: Random)

A generator that should be used Only for Testing!

Rules for the EORI: https://design.tax.service.gov.uk/hmrc-design-patterns/eori-numbers/

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

Attributes

Example

EoriGenerator(seed).nextEori.eori

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 nextEori: Eori

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product