jvmMain.tech.skot.libraries.map.di.SKMapViewInjectorMock.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of viewmodelTests Show documentation
Show all versions of viewmodelTests Show documentation
viewmodelTests module for SK-Map skot library
The newest version!
package tech.skot.libraries.map.di
import tech.skot.core.di.InjectorMock
import tech.skot.core.di.module
import tech.skot.libraries.map.*
import tech.skot.libraries.map.view.Permissions
class SKMapViewInjectorMock : SKMapViewInjector {
override fun sKMap(
mapInteractionSettingsInitial: SKMapVC.MapInteractionSettings,
markersInitial: List,
linesInitial: List,
polygonsInitial: List,
selectedMarkerInitial: SKMapVC.Marker?,
selectMarkerOnClickInitial: Boolean,
unselectMarkerOnMapClickInitial: Boolean,
onMarkerClickInitial: ((SKMapVC.Marker) -> Unit)?,
onMarkerSelectedInitial: ((SKMapVC.Marker?) -> Unit)?,
onMapClickedInitial: ((LatLng) -> Unit)?,
onMapLongClickedInitial: ((LatLng) -> Unit)?,
onMapBoundsChangeInitial: ((SKMapVC.LatLngBounds) -> Unit)?,
showLogInitial: Boolean,
mapTypeInitial: MapType
): SKMapVC {
return SKMapViewMock(
mapInteractionSettingsInitial,
markersInitial,
linesInitial,
polygonsInitial,
selectedMarkerInitial,
selectMarkerOnClickInitial,
unselectMarkerOnMapClickInitial,
onMarkerClickInitial,
onMapClickedInitial,
onMapLongClickedInitial,
onMarkerSelectedInitial,
onMapBoundsChangeInitial,
showLogInitial,
mapTypeInitial
)
}
}
val skMapModuleMock = module {
single { SKMapViewInjectorMock() }
single { PermissionsMock() }
single { DeclaredPermissionHelperMock() }
}