Coverage Summary for Class: GetTransactionByIdUseCase (com.georgeci.moneysurfer.domain.usecase)

Class Class, % Method, % Branch, % Line, % Instruction, %
GetTransactionByIdUseCase 100% (1/1) 100% (2/2) 100% (3/3) 100% (10/10)


 package com.georgeci.moneysurfer.domain.usecase
 
 import com.georgeci.moneysurfer.domain.model.Transaction
 import com.georgeci.moneysurfer.domain.primitives.TransactionId
 import com.georgeci.moneysurfer.domain.repositories.TransactionRepository
 import org.koin.core.annotation.Single
 
 @Single
 class GetTransactionByIdUseCase(
     private val transactionRepository: TransactionRepository,
 ) {
 
     suspend operator fun invoke(id: TransactionId): Transaction? {
         return transactionRepository.getById(id)
     }
 }