Replace the existing MockClientProxy with a generated one + special configuration options

This commit is contained in:
Stefan Ceriu
2024-02-27 16:22:47 +02:00
parent 14d76d9860
commit c8f728ca23
36 changed files with 793 additions and 311 deletions
@@ -21,7 +21,7 @@ import XCTest
@MainActor
class StartChatScreenViewModelTests: XCTestCase {
var viewModel: StartChatScreenViewModelProtocol!
var clientProxy: MockClientProxy!
var clientProxy: ClientProxyMock!
var userDiscoveryService: UserDiscoveryServiceMock!
var context: StartChatScreenViewModel.Context {
@@ -29,7 +29,7 @@ class StartChatScreenViewModelTests: XCTestCase {
}
override func setUpWithError() throws {
clientProxy = .init(userID: "")
clientProxy = .init(.init(userID: ""))
userDiscoveryService = UserDiscoveryServiceMock()
userDiscoveryService.fetchSuggestionsReturnValue = .success([])
userDiscoveryService.searchProfilesWithReturnValue = .success([])