Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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