Kotlin, Kotest, Property Based Testing.
= arbitrary { InputDto( date = dateArb.bind(), amount = amountArb.bind(), positions = createInputPositionsArb().bind() ) } fun createInputPositionsArb() = arbitrary { val positions = mutableListOf<InputPositionDto>() repeat(amountPositionsArb.bind()) { positions.add(createInputPositionArb().bind())