Add results-service microservice with API gateway integration, implement Ergebnis repository and edit dialog, update BewerbViewModel for Ergebniserfassung, and enhance Turnier UI with result management features.
This commit is contained in:
+6
@@ -149,9 +149,15 @@ fun PreviewTurnierBewerbeTab() {
|
||||
override suspend fun generate(bewerbId: Long): Result<List<StartlistenZeile>> = Result.success(emptyList())
|
||||
override suspend fun getByBewerb(bewerbId: Long): Result<List<StartlistenZeile>> = Result.success(emptyList())
|
||||
}
|
||||
val mockErgebnisRepo = object : at.mocode.turnier.feature.domain.ErgebnisRepository {
|
||||
override suspend fun getForBewerb(bewerbId: String): Result<List<at.mocode.turnier.feature.domain.Ergebnis>> = Result.success(emptyList())
|
||||
override suspend fun save(ergebnis: at.mocode.turnier.feature.domain.Ergebnis): Result<at.mocode.turnier.feature.domain.Ergebnis> = Result.success(ergebnis)
|
||||
override suspend fun calculatePlatzierung(bewerbId: String): Result<List<at.mocode.turnier.feature.domain.Ergebnis>> = Result.success(emptyList())
|
||||
}
|
||||
val vm = BewerbViewModel(
|
||||
repo = mockRepo,
|
||||
startlistenRepo = mockStartlistenRepo,
|
||||
ergebnisRepo = mockErgebnisRepo,
|
||||
syncManager = null,
|
||||
turnierId = 1L
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user