mvrx-mocking / com.airbnb.mvrx.mocking / TwoViewModelMockBuilder / viewModel1StateForLoadingAndFailure

viewModel1StateForLoadingAndFailure

fun <T, A : Async<T>> viewModel1StateForLoadingAndFailure(state: S1 = defaultState1, asyncPropertyBlock: S1.() -> KProperty0<A>): Unit

Helper to mock the loading and failure state of an Async property on your state in the first view model. Creates two different mocked states stemmed from the given state - one where the async property is set to Loading and one where it is set to Fail.