Refactor app configuration

This commit is contained in:
2025-03-03 21:15:28 +01:00
parent de3d4a1021
commit 299ebff88b
4 changed files with 30 additions and 23 deletions

View File

@@ -1,6 +1,6 @@
package eventDemo.app.actions
import eventDemo.module
import eventDemo.configure
import eventDemo.shared.GameId
import eventDemo.shared.entity.Card
import eventDemo.shared.event.CardIsPlayedEvent
@@ -27,7 +27,7 @@ class CardTest :
testApplication {
application {
stopKoin()
module()
configure()
}
val id = GameId()
@@ -52,7 +52,7 @@ class CardTest :
val card: Card = Card.NumericCard(1, Card.Color.Blue)
application {
stopKoin()
module()
configure()
val eventStream by inject<GameEventStream>()
eventStream.publish(
CardIsPlayedEvent(id, Card.NumericCard(2, Card.Color.Yellow)),