Skip to content

Commit

Permalink
feat/#95 :: JoinRoomUseCaseImpl / Mock 구현
Browse files Browse the repository at this point in the history
 Co-Authored-By: Kiyoung <[email protected]>
  • Loading branch information
youn9k committed Nov 25, 2024
1 parent 5fe7a32 commit 4cf7a75
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import Foundation
import Combine
import PhotoGetherDomainInterface

public final class JoinRoomUseCaseImpl: JoinRoomUseCase {
// TODO: 수정 필요
public func execute() -> AnyPublisher<Bool, Never> {
return Just(true)
.delay(for: .seconds(3), scheduler: DispatchQueue.main)
.eraseToAnyPublisher()
}

private let connectionRepository: ConnectionRepository

public init(connectionRepository: ConnectionRepository) {
self.connectionRepository = connectionRepository
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import Foundation
import Combine
import PhotoGetherDomainInterface

public final class JoinRoomUseCaseMock: JoinRoomUseCase {
public func execute() -> AnyPublisher<Bool, Never> {
return Just(true)
.delay(for: .seconds(3), scheduler: DispatchQueue.main)
.eraseToAnyPublisher()
}
}

0 comments on commit 4cf7a75

Please sign in to comment.