fix(creator-channel): 오디오 탭 테마 조회 컨텍스트를 전달한다
This commit is contained in:
@@ -60,6 +60,10 @@ class CreatorChannelAudioQueryServiceTest {
|
||||
assertNull(port.listThemeId)
|
||||
assertEquals("en", port.listLocale)
|
||||
assertEquals(false, port.listCanViewAdultContent)
|
||||
assertEquals(1L, port.themeCreatorId)
|
||||
assertEquals(now, port.themeNow)
|
||||
assertEquals(false, port.themeCanViewAdultContent)
|
||||
assertEquals("en", port.themeLocale)
|
||||
assertEquals(75.0, tab.purchasedAudioContentRate)
|
||||
assertEquals(50, tab.audioContents.size)
|
||||
assertTrue(tab.hasNext)
|
||||
@@ -191,6 +195,10 @@ private class FakeCreatorChannelAudioQueryPort : CreatorChannelAudioQueryPort {
|
||||
var listOffset: Long? = null
|
||||
var listLimit: Int? = null
|
||||
var listCanViewAdultContent: Boolean? = null
|
||||
var themeCreatorId: Long? = null
|
||||
var themeNow: LocalDateTime? = null
|
||||
var themeCanViewAdultContent: Boolean? = null
|
||||
var themeLocale: String? = null
|
||||
|
||||
override fun findCreator(creatorId: Long, viewerId: Long?): CreatorChannelAudioCreatorRecord? = creator
|
||||
|
||||
@@ -198,7 +206,16 @@ private class FakeCreatorChannelAudioQueryPort : CreatorChannelAudioQueryPort {
|
||||
|
||||
override fun findActiveThemeId(themeId: Long): Long? = activeThemeId
|
||||
|
||||
override fun findAudioThemes(locale: String): List<CreatorChannelAudioThemeRecord> {
|
||||
override fun findAudioThemes(
|
||||
creatorId: Long,
|
||||
now: LocalDateTime,
|
||||
canViewAdultContent: Boolean,
|
||||
locale: String
|
||||
): List<CreatorChannelAudioThemeRecord> {
|
||||
themeCreatorId = creatorId
|
||||
themeNow = now
|
||||
themeCanViewAdultContent = canViewAdultContent
|
||||
themeLocale = locale
|
||||
return listOf(CreatorChannelAudioThemeRecord(themeId = 10L, themeName = locale))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user