Coverage Summary for Class: GetAccountByIdUseCase (com.georgeci.moneysurfer.domain.usecase)
| Class |
Class, %
|
Method, %
|
Branch, %
|
Line, %
|
Instruction, %
|
| GetAccountByIdUseCase |
100%
(1/1)
|
100%
(2/2)
|
|
100%
(3/3)
|
100%
(10/10)
|
package com.georgeci.moneysurfer.domain.usecase
import com.georgeci.moneysurfer.domain.model.Account
import com.georgeci.moneysurfer.domain.primitives.AccountId
import com.georgeci.moneysurfer.domain.repositories.AccountRepository
import org.koin.core.annotation.Single
@Single
class GetAccountByIdUseCase(
private val accountRepository: AccountRepository,
) {
suspend operator fun invoke(id: AccountId): Account? = accountRepository.getById(id)
}