GivenStage

interface GivenStage<S : Any>

Functions

Link copied to clipboard
abstract fun given(vararg events: Any): WhenStage<S>
Link copied to clipboard
open fun givenEvent(vararg events: Any): WhenStage<S>
Link copied to clipboard
abstract fun givenState(state: StateAggregate<S>): WhenStage<S>
abstract fun givenState(state: S, version: Int): WhenStage<S>
Link copied to clipboard
open fun <SERVICE : Any> inject(service: SERVICE): GivenStage<S>
abstract fun <SERVICE : Any> inject(service: SERVICE, serviceName: String): GivenStage<S>
Link copied to clipboard
fun <S : Any> GivenStage<S>.when(command: Any, header: Header = DefaultHeader.empty()): ExpectStage<S>
Link copied to clipboard
fun <S : Any> GivenStage<S>.whenCommand(command: Any, header: Header = DefaultHeader.empty()): ExpectStage<S>