Skip to content

Instantly share code, notes, and snippets.

@hiteshchopra11
Created March 6, 2022 08:25
Show Gist options
  • Save hiteshchopra11/f7c468bcd630ac182d90d11fd403a3c6 to your computer and use it in GitHub Desktop.
Save hiteshchopra11/f7c468bcd630ac182d90d11fd403a3c6 to your computer and use it in GitHub Desktop.
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