inject

abstract fun inject(inject: ServiceProvider.() -> Unit)

Injects services or dependencies into the test context.

This method allows registering mock implementations or test-specific services that the aggregate depends on during command execution.

Parameters

inject

a lambda that configures the service provider with test dependencies