Lines Matching refs:userRepository
45 val userRepository = FakeUserRepository() in testSwitchSucceeded() constant
46 userRepository.switchSucceeded = true in testSwitchSucceeded()
47 val userSwitchUseCase = UserSwitchUseCase(11, userRepository, intentRepository) in testSwitchSucceeded()
56 val userRepository = FakeUserRepository() in testSwitchFailed() constant
57 userRepository.switchSucceeded = false in testSwitchFailed()
58 val userSwitchUseCase = UserSwitchUseCase(11, userRepository, intentRepository) in testSwitchFailed()
75 val userRepository = FakeUserRepository() in testSwitchDisabledByUser() constant
76 userRepository.userRestrictions = UserSwitchRestrictions.DISABLED in testSwitchDisabledByUser()
77 val userSwitchUseCase = UserSwitchUseCase(11, userRepository, intentRepository) in testSwitchDisabledByUser()
96 val userRepository = FakeUserRepository() in testSwitchDisabledByWorkPolicy() constant
97 userRepository.userRestrictions = UserSwitchRestrictions.WORK_POLICY in testSwitchDisabledByWorkPolicy()
98 val userSwitchUseCase = UserSwitchUseCase(11, userRepository, intentRepository) in testSwitchDisabledByWorkPolicy()
115 val userRepository = FakeUserRepository() in testSwitchDisabledNotAllowedOnCall() constant
116 userRepository.userRestrictions = UserSwitchRestrictions.ONCALL_OR_LOCKED in testSwitchDisabledNotAllowedOnCall()
117 val userSwitchUseCase = UserSwitchUseCase(11, userRepository, intentRepository) in testSwitchDisabledNotAllowedOnCall()