class PhoneNumber: YamlFakeDataProvider<PhoneNumber>
Fields
Name | Description |
---|---|
protected yamlCategory: YamlCategory
|
Category for This is the key entry after the For example
then the yamlCategory would be YamlCategory.ADDRESS NB! If the secondaryCategory is NOT set,the dictionary filename should match the yamlCategory name,i.e. the file name should be |
protected localUniqueDataProvider: LocalUniqueDataProvider<PhoneNumber>
|
A LocalUniqueDataProvider instance that is used with this unique provider. |
val unique: PhoneNumber
|
An instance of T for generating unique values |
val cellPhone: by lazy { CellPhone(fakerService) }
|
Methods
areaCode
fun areaCode(): resolve("area_code")
ReturnValue
Name | Description |
---|---|
resolve("area_code")
|
countryCode
fun countryCode(): resolve("country_code")
ReturnValue
Name | Description |
---|---|
resolve("country_code")
|
exchangeCode
fun exchangeCode(): resolve("exchange_code")
ReturnValue
Name | Description |
---|---|
resolve("exchange_code")
|
phoneNumber
fun phoneNumber(): with(fakerService) { resolve("formats").numerify() }
ReturnValue
Name | Description |
---|---|
with(fakerService) { resolve("formats").numerify() }
|
extension
fun extension(): with(fakerService) { resolve("extension").numerify() }
ReturnValue
Name | Description |
---|---|
with(fakerService) { resolve("extension").numerify() }
|
subscriberNumber
fun subscriberNumber(): with(fakerService) { resolve("subscriber_number").numerify() }
ReturnValue
Name | Description |
---|---|
with(fakerService) { resolve("subscriber_number").numerify() }
|
FakeDataProvider implementation for YamlCategory.PHONE_NUMBER category.