Skip to content
Snippets Groups Projects
Commit 69f58702 authored by Dariusz Rybicki's avatar Dariusz Rybicki
Browse files

Update E2EGetAllPartnerIds functor

parent a46b24d9
No related branches found
No related tags found
2 merge requests!102Release 1.0.0,!25Update Bindings
......@@ -2,16 +2,19 @@ import Bindings
import XCTestDynamicOverlay
public struct E2EGetAllPartnerIds {
public var run: () throws -> Data
public var run: () throws -> [Data]
public func callAsFunction() throws -> Data {
public func callAsFunction() throws -> [Data] {
try run()
}
}
extension E2EGetAllPartnerIds {
public static func live(_ bindingsE2E: BindingsE2e) -> E2EGetAllPartnerIds {
E2EGetAllPartnerIds(run: bindingsE2E.getAllPartnerIDs)
E2EGetAllPartnerIds {
let listData = try bindingsE2E.getAllPartnerIDs()
return try JSONDecoder().decode([Data].self, from: listData)
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment