
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-jvm Show documentation
Show all versions of viewmodelTests-jvm Show documentation
viewmodelTests module for SK-Map skot library
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
): SKMapVC {
return SKMapViewMock(
mapInteractionSettingsInitial,
markersInitial,
linesInitial,
polygonsInitial,
selectedMarkerInitial,
selectMarkerOnClickInitial,
unselectMarkerOnMapClickInitial,
onMarkerClickInitial,
onMapClickedInitial,
onMapLongClickedInitial,
onMarkerSelectedInitial,
onMapBoundsChangeInitial,
showLogInitial
)
}
}
val skMapModuleMock = module {
single { SKMapViewInjectorMock() }
single { PermissionsMock() }
single { DeclaredPermissionHelperMock() }
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy