Slide 28
Slide 28 text
Custom extension function
fun Forger.aUser(): User {
return User(
id = aNumericalString(),
firstName = aWord(Case.CAPITALIZE),
lastName = aWord(Case.CAPITALIZE),
jobTitle = aNullable { aSentence() },
avatarUrl = aNullable { aUrl() },
email = aNullable { anEmail() },
tags = aList { aWord() }
)
}