givenReservation

fun givenReservation(namespace: String, key: String, owner: AggregateRef = model.type.ref(ref.tenantId, ANOTHER_AGGREGATE), tenancy: ReservationTenancy = ReservationTenancy.TENANT)

Gives key in namespace, reserved with tenancy, to owner, another aggregate of this type (another-aggregate by default: a key is unique within its aggregate type), as a command of it that committed would: a command reserving it is then refused, and holds says the aggregate does not hold it.