diff --git a/app/src/test/kotlin/com/wire/android/ui/WireActivityViewModelTest.kt b/app/src/test/kotlin/com/wire/android/ui/WireActivityViewModelTest.kt index b19862723c4..f680c683e0c 100644 --- a/app/src/test/kotlin/com/wire/android/ui/WireActivityViewModelTest.kt +++ b/app/src/test/kotlin/com/wire/android/ui/WireActivityViewModelTest.kt @@ -741,26 +741,26 @@ class WireActivityViewModelTest { private val viewModel by lazy { WireActivityViewModel( - coreLogic = coreLogic, - dispatchers = TestDispatcherProvider(), - currentSessionFlow = currentSessionFlow, - doesValidSessionExist = doesValidSessionExist, - getServerConfigUseCase = getServerConfigUseCase, - deepLinkProcessor = deepLinkProcessor, - authServerConfigProvider = authServerConfigProvider, - getSessions = getSessionsUseCase, - accountSwitch = switchAccount, - migrationManager = migrationManager, - servicesManager = servicesManager, + coreLogic = { coreLogic }, + dispatchers = { TestDispatcherProvider() }, + currentSessionFlow = { currentSessionFlow }, + doesValidSessionExist = { doesValidSessionExist }, + getServerConfigUseCase = { getServerConfigUseCase }, + deepLinkProcessor = { deepLinkProcessor }, + authServerConfigProvider = { authServerConfigProvider }, + getSessions = { getSessionsUseCase }, + accountSwitch = { switchAccount }, + migrationManager = { migrationManager }, + servicesManager = { servicesManager }, observeSyncStateUseCaseProviderFactory = observeSyncStateUseCaseProviderFactory, - observeIfAppUpdateRequired = observeIfAppUpdateRequired, - observeNewClients = observeNewClients, - clearNewClientsForUser = clearNewClientsForUser, - currentScreenManager = currentScreenManager, + observeIfAppUpdateRequired = { observeIfAppUpdateRequired }, + observeNewClients = { observeNewClients }, + clearNewClientsForUser = { clearNewClientsForUser }, + currentScreenManager = { currentScreenManager }, observeScreenshotCensoringConfigUseCaseProviderFactory = observeScreenshotCensoringConfigUseCaseProviderFactory, - globalDataStore = globalDataStore, + globalDataStore = { globalDataStore }, observeIfE2EIRequiredDuringLoginUseCaseProviderFactory = observeIfE2EIRequiredDuringLoginUseCaseProviderFactory, - workManager = workManager + workManager = { workManager } ) }