Skip to content

Instantly share code, notes, and snippets.

@MkhytarMkhoian
Created May 8, 2024 10:29
Show Gist options
  • Save MkhytarMkhoian/f3b3aee40f974f42e0cf620ff7c03313 to your computer and use it in GitHub Desktop.
Save MkhytarMkhoian/f3b3aee40f974f42e0cf620ff7c03313 to your computer and use it in GitHub Desktop.
fun randomCategory(children: List<Category> = emptyList()) = Category(
categoryId = CategoryId(faker.number().randomDigitNotZero().toLong()),
postingType = Category.PostingType.DEFAULT,
feedType = Category.FeedType.DEFAULT,
panelType = Category.PanelType.CATEGORY,
adsCount = faker.number().randomDigitNotZero(),
children = children,
name = faker.name().name(),
iconImage = faker.name().fullName(),
image = null,
searchNames = emptyList()
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment