Created
March 6, 2022 08:25
-
-
Save hiteshchopra11/f7c468bcd630ac182d90d11fd403a3c6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SampleEmployeeDataProvider : PreviewParameterProvider<EmployeeData> { | |
override val values: Sequence<EmployeeData> = sequenceOf( | |
EmployeeData( | |
name = "John Rick", | |
id = 34, | |
address = "767, abc colony, xyz city", | |
dob = "01-01-1999", | |
bankDetails = BankDetails( | |
accountNumber = 1234, | |
ifsc = "IFSC", | |
city = "New York", | |
pinCode = 142991, | |
accountName = "John Sample Rick" | |
), | |
previousCompanies = listOf( | |
"Company1", | |
"Company2", | |
"Company3", | |
"Company4", | |
) | |
), | |
EmployeeData( | |
name = "John Show", | |
id = 34, | |
address = "This is a long address intentionally " + | |
"written t check how it behvaes in UI", | |
dob = "Unable to find address", | |
bankDetails = BankDetails( | |
accountNumber = 1234, | |
ifsc = "IFSC", | |
city = "Paris", | |
pinCode = 32321, | |
accountName = "John" | |
), | |
previousCompanies = listOf() | |
) | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment