MiddlewareTestScope
fun <State> MiddlewareTestScope(middleware: Middleware<State>, initialState: State, initialClosure: DispatchClosure = EmptyDispatchClosure, initialOnDispatch: MutableDispatchScope<State>.(Action) -> Unit = { }): MiddlewareTestScope<State>
Creates a MiddlewareTestScope for a middleware with initialState, initialClosure and initialOnDispatch.