mvrx-mocking / com.airbnb.mvrx.mocking / DataClassSetDsl / setNetworkFailure

setNetworkFailure

open fun <DataClass : Any, Type : Async<AsyncType>, AsyncType> DataClass.setNetworkFailure(block: DataClass.() -> KProperty0<Type>): DataClass

A shortcut to setting an Async property to Fail, instead of "data.set { ::property }.with { Fail() }".