Skip to content

Commit

Permalink
Merge pull request #619 from wakmusic/568-stub-outer-myinfo-feature
Browse files Browse the repository at this point in the history
🔀 :: (#568) 내정보 화면을 DemoApp으로 만들기 위한 �UseCase Stub 작업
  • Loading branch information
youn9k authored Jun 18, 2024
2 parents 72d436d + a4a03b4 commit 74d254b
Show file tree
Hide file tree
Showing 10 changed files with 44 additions and 32 deletions.
4 changes: 4 additions & 0 deletions Projects/Domains/FaqDomain/Project.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ let project = Project.module(
.domain(target: .FaqDomain, type: .interface)
]
),
.testing(
module: .domain(.FaqDomain),
dependencies: [.domain(target: .FaqDomain, type: .interface)]
),
.tests(
module: .domain(.FaqDomain),
dependencies: [.domain(target: .FaqDomain)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
//
// FetchArtistListUseCaseImpl.swift
// DataModule
//
// Created by KTH on 2023/02/08.
// Copyright © 2023 yongbeomkwak. All rights reserved.
//

import FaqDomainInterface
import Foundation
import RxSwift
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
//
// FetchArtistListUseCaseImpl.swift
// DataModule
//
// Created by KTH on 2023/02/08.
// Copyright © 2023 yongbeomkwak. All rights reserved.
//

import FaqDomainInterface
import Foundation
import RxSwift
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import FaqDomainInterface
import Foundation
import RxSwift

public struct FetchFaqCategoriesUseCaseStub: FetchFaqCategoriesUseCase {
public func execute() -> Single<FaqCategoryEntity> {
return .just(FaqCategoryEntity(categories: []))
}
}
9 changes: 9 additions & 0 deletions Projects/Domains/FaqDomain/Testing/FetchFaqUseCaseStub.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import FaqDomainInterface
import Foundation
import RxSwift

public struct FetchFaqUseCaseStub: FetchFaqUseCase {
public func execute() -> Single<[FaqEntity]> {
return .just([])
}
}
4 changes: 4 additions & 0 deletions Projects/Domains/NoticeDomain/Project.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ let project = Project.module(
.domain(target: .NoticeDomain, type: .interface)
]
),
.testing(
module: .domain(.NoticeDomain),
dependencies: [.domain(target: .NoticeDomain, type: .interface)]
),
.tests(
module: .domain(.NoticeDomain),
dependencies: [.domain(target: .NoticeDomain)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
//
// FetchNoticeCategoriesUseCaseImpl.swift
// DataModule
//
// Created by KTH on 2023/04/08.
// Copyright © 2023 yongbeomkwak. All rights reserved.
//

import Foundation
import NoticeDomainInterface
import RxSwift
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
//
// FetchNoticeUseCaseImpl.swift
// DataModule
//
// Created by KTH on 2023/04/08.
// Copyright © 2023 yongbeomkwak. All rights reserved.
//

import Foundation
import NoticeDomainInterface
import RxSwift
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import Foundation
import NoticeDomainInterface
import RxSwift

public struct FetchNoticeCategoriesUseCaseStub: FetchNoticeCategoriesUseCase {
public func execute() -> Single<FetchNoticeCategoriesEntity> {
return .just(FetchNoticeCategoriesEntity(categories: []))
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import Foundation
import NoticeDomainInterface
import RxSwift

public struct FetchNoticeUseCaseStub: FetchNoticeUseCase {
public func execute(type: NoticeType) -> Single<[FetchNoticeEntity]> {
return .just([])
}
}

0 comments on commit 74d254b

Please sign in to comment.