diff --git a/Projects/Domains/FaqDomain/Project.swift b/Projects/Domains/FaqDomain/Project.swift index 2a0822074..102b5ee1d 100644 --- a/Projects/Domains/FaqDomain/Project.swift +++ b/Projects/Domains/FaqDomain/Project.swift @@ -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)] diff --git a/Projects/Domains/FaqDomain/Sources/UseCase/FetchFaqCategoriesUseCaseImpl.swift b/Projects/Domains/FaqDomain/Sources/UseCase/FetchFaqCategoriesUseCaseImpl.swift index 48499863b..dffb208a5 100644 --- a/Projects/Domains/FaqDomain/Sources/UseCase/FetchFaqCategoriesUseCaseImpl.swift +++ b/Projects/Domains/FaqDomain/Sources/UseCase/FetchFaqCategoriesUseCaseImpl.swift @@ -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 diff --git a/Projects/Domains/FaqDomain/Sources/UseCase/FetchFaqUseCaseImpl.swift b/Projects/Domains/FaqDomain/Sources/UseCase/FetchFaqUseCaseImpl.swift index 82e2b8a5d..86e7f2754 100644 --- a/Projects/Domains/FaqDomain/Sources/UseCase/FetchFaqUseCaseImpl.swift +++ b/Projects/Domains/FaqDomain/Sources/UseCase/FetchFaqUseCaseImpl.swift @@ -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 diff --git a/Projects/Domains/FaqDomain/Testing/FetchFaqCategoriesUseCaseStub.swift b/Projects/Domains/FaqDomain/Testing/FetchFaqCategoriesUseCaseStub.swift new file mode 100644 index 000000000..c2c4d7aae --- /dev/null +++ b/Projects/Domains/FaqDomain/Testing/FetchFaqCategoriesUseCaseStub.swift @@ -0,0 +1,9 @@ +import FaqDomainInterface +import Foundation +import RxSwift + +public struct FetchFaqCategoriesUseCaseStub: FetchFaqCategoriesUseCase { + public func execute() -> Single { + return .just(FaqCategoryEntity(categories: [])) + } +} diff --git a/Projects/Domains/FaqDomain/Testing/FetchFaqUseCaseStub.swift b/Projects/Domains/FaqDomain/Testing/FetchFaqUseCaseStub.swift new file mode 100644 index 000000000..329d37e71 --- /dev/null +++ b/Projects/Domains/FaqDomain/Testing/FetchFaqUseCaseStub.swift @@ -0,0 +1,9 @@ +import FaqDomainInterface +import Foundation +import RxSwift + +public struct FetchFaqUseCaseStub: FetchFaqUseCase { + public func execute() -> Single<[FaqEntity]> { + return .just([]) + } +} diff --git a/Projects/Domains/NoticeDomain/Project.swift b/Projects/Domains/NoticeDomain/Project.swift index a2d6f6dc7..61dc7b08c 100644 --- a/Projects/Domains/NoticeDomain/Project.swift +++ b/Projects/Domains/NoticeDomain/Project.swift @@ -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)] diff --git a/Projects/Domains/NoticeDomain/Sources/UseCase/FetchNoticeCategoriesUseCaseImpl.swift b/Projects/Domains/NoticeDomain/Sources/UseCase/FetchNoticeCategoriesUseCaseImpl.swift index dc9d5d5bb..d6b00a858 100644 --- a/Projects/Domains/NoticeDomain/Sources/UseCase/FetchNoticeCategoriesUseCaseImpl.swift +++ b/Projects/Domains/NoticeDomain/Sources/UseCase/FetchNoticeCategoriesUseCaseImpl.swift @@ -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 diff --git a/Projects/Domains/NoticeDomain/Sources/UseCase/FetchNoticeUseCaseImpl.swift b/Projects/Domains/NoticeDomain/Sources/UseCase/FetchNoticeUseCaseImpl.swift index a94098f9b..c0e9f1cae 100644 --- a/Projects/Domains/NoticeDomain/Sources/UseCase/FetchNoticeUseCaseImpl.swift +++ b/Projects/Domains/NoticeDomain/Sources/UseCase/FetchNoticeUseCaseImpl.swift @@ -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 diff --git a/Projects/Domains/NoticeDomain/Testing/FetchNoticeCategoriesUseCaseStub.swift b/Projects/Domains/NoticeDomain/Testing/FetchNoticeCategoriesUseCaseStub.swift new file mode 100644 index 000000000..27833b9d0 --- /dev/null +++ b/Projects/Domains/NoticeDomain/Testing/FetchNoticeCategoriesUseCaseStub.swift @@ -0,0 +1,9 @@ +import Foundation +import NoticeDomainInterface +import RxSwift + +public struct FetchNoticeCategoriesUseCaseStub: FetchNoticeCategoriesUseCase { + public func execute() -> Single { + return .just(FetchNoticeCategoriesEntity(categories: [])) + } +} diff --git a/Projects/Domains/NoticeDomain/Testing/FetchNoticeUseCaseStub.swift b/Projects/Domains/NoticeDomain/Testing/FetchNoticeUseCaseStub.swift new file mode 100644 index 000000000..e5b237473 --- /dev/null +++ b/Projects/Domains/NoticeDomain/Testing/FetchNoticeUseCaseStub.swift @@ -0,0 +1,9 @@ +import Foundation +import NoticeDomainInterface +import RxSwift + +public struct FetchNoticeUseCaseStub: FetchNoticeUseCase { + public func execute(type: NoticeType) -> Single<[FetchNoticeEntity]> { + return .just([]) + } +}