We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2faf81e commit 13363d7Copy full SHA for 13363d7
capsa-it/src/main/kotlin/digital/capsa/it/aggregate/AggregateDsl.kt
@@ -32,9 +32,11 @@ abstract class Aggregate(private val aggregateName: String) {
32
33
abstract fun onCreate(pass: Pass)
34
35
- protected fun <T : Aggregate> initAggregate(aggregate: T, init: T.() -> Unit): T {
+ protected fun <T : Aggregate> addAggregate(aggregate: T, init: T.() -> Unit): T {
36
aggregate.parent = this
37
children.add(aggregate)
38
+ aggregate.randomSeed = Random(aggregate.getPath().hashCode().toLong()).nextLong()
39
+ aggregate.onConstruct()
40
aggregate.init()
41
return aggregate
42
}
0 commit comments