Separate Manage account from Manage devices. (#1698)

Update the SDK.
This commit is contained in:
Doug
2023-09-13 15:49:01 +01:00
committed by GitHub
parent 8268ecc036
commit da29c7efde
15 changed files with 138 additions and 90 deletions
@@ -33,19 +33,27 @@ class SDKClientMock: SDKClientProtocol {
}
//MARK: - accountUrl
public var accountUrlCallsCount = 0
public var accountUrlCalled: Bool {
return accountUrlCallsCount > 0
public var accountUrlActionThrowableError: Error?
public var accountUrlActionCallsCount = 0
public var accountUrlActionCalled: Bool {
return accountUrlActionCallsCount > 0
}
public var accountUrlReturnValue: String?
public var accountUrlClosure: (() -> String?)?
public var accountUrlActionReceivedAction: AccountManagementAction?
public var accountUrlActionReceivedInvocations: [AccountManagementAction?] = []
public var accountUrlActionReturnValue: String?
public var accountUrlActionClosure: ((AccountManagementAction?) throws -> String?)?
public func accountUrl() -> String? {
accountUrlCallsCount += 1
if let accountUrlClosure = accountUrlClosure {
return accountUrlClosure()
public func accountUrl(action: AccountManagementAction?) throws -> String? {
if let error = accountUrlActionThrowableError {
throw error
}
accountUrlActionCallsCount += 1
accountUrlActionReceivedAction = action
accountUrlActionReceivedInvocations.append(action)
if let accountUrlActionClosure = accountUrlActionClosure {
return try accountUrlActionClosure(action)
} else {
return accountUrlReturnValue
return accountUrlActionReturnValue
}
}
//MARK: - avatarUrl