Slide 26
Slide 26 text
© GO Inc.
UnitTestを書く 〜 MarkAsReadUseCaseImpl
26
protocol MarkAsReadUseCase {
func execute(notification: Notification, completion: @escaping (() -> Void))
}
struct MarkAsReadUseCaseImpl: MarkAsReadUseCase {
let notificationRepository: NotificationRepository
func execute(notification: Notification, completion: @escaping (() -> Void)) {
notificationRepository.store(notification: readNotification, completion: completion)
}
}