Created
April 18, 2024 13:55
-
-
Save MkhytarMkhoian/7c94ed3f8f89f86b6a3ad07abcb16675 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
@Test | |
fun `On asDomain call should return domain model`() { | |
val categoryDTO = randomCategoryDTO() | |
val domainModel = categoryDTO.asDomain() | |
assertEquals(categoryDTO.id, domainModel.categoryId.id) | |
assertEquals(categoryDTO.image, domainModel.image) | |
assertEquals(categoryDTO.name, domainModel.name) | |
assertEquals(categoryDTO.children.size, domainModel.children.size) | |
assertEquals(categoryDTO.adsCount, domainModel.adsCount) | |
assertEquals(categoryDTO.feedType?.asDomain(), domainModel.feedType) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment