Skip to content

Commit

Permalink
Rename ImportSeedUseCase
Browse files Browse the repository at this point in the history
  • Loading branch information
Faltenreich committed Nov 26, 2024
1 parent 631f1ec commit 9087583
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import com.faltenreich.diaguard.tag.TagRepository
/**
* Import from files bundled with the app
*/
class SeedImportUseCase(
class ImportSeedUseCase(
private val seedRepository: SeedRepository,
private val categoryRepository: MeasurementCategoryRepository,
private val propertyRepository: MeasurementPropertyRepository,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,5 @@ fun seedModule() = module {

singleOf(::SeedRepository)

singleOf(::SeedImportUseCase)
singleOf(::ImportSeedUseCase)
}
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package com.faltenreich.diaguard.main

import com.faltenreich.diaguard.backup.legacy.ImportLegacyUseCase
import com.faltenreich.diaguard.backup.seed.SeedImportUseCase
import com.faltenreich.diaguard.backup.seed.ImportSeedUseCase
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.withContext

class SetupUseCase(
private val dispatcher: CoroutineDispatcher,
private val hasData: HasDataUseCase,
private val importSeed: SeedImportUseCase,
private val importSeed: ImportSeedUseCase,
private val importLegacy: ImportLegacyUseCase,
) {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.faltenreich.diaguard

import androidx.annotation.CallSuper
import com.faltenreich.diaguard.backup.seed.SeedImportUseCase
import com.faltenreich.diaguard.backup.seed.ImportSeedUseCase
import com.faltenreich.diaguard.measurement.value.StoreMeasurementValueUseCase
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.test.resetMain
Expand All @@ -15,7 +15,7 @@ import kotlin.test.BeforeTest

interface TestSuite : KoinTest {

val importSeed: SeedImportUseCase
val importSeed: ImportSeedUseCase
get() = get()

val storeValue: StoreMeasurementValueUseCase
Expand Down

0 comments on commit 9087583

Please sign in to comment.