|
@ -11,62 +11,6 @@ import XCTest |
|
|
|
|
|
|
|
|
class APITest: XCTestCase { |
|
|
class APITest: XCTestCase { |
|
|
|
|
|
|
|
|
func testFetchBankList() { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func testRealName() { |
|
|
|
|
|
// let service = AddAccountService() |
|
|
|
|
|
// let expt = expectation(description: "testRealName") |
|
|
|
|
|
// |
|
|
|
|
|
// var params = ["CustomerId": "85074"] |
|
|
|
|
|
// params["BankCode"] = "034" |
|
|
|
|
|
// params["AccountNumber"] = "1234512345" |
|
|
|
|
|
// |
|
|
|
|
|
// service.verifyAccountService( |
|
|
|
|
|
// using: params, |
|
|
|
|
|
// success: { |
|
|
|
|
|
// expt.fulfill() |
|
|
|
|
|
// }, |
|
|
|
|
|
// failure: { |
|
|
|
|
|
// print("error: \($0)") |
|
|
|
|
|
// expt.fulfill() |
|
|
|
|
|
// } |
|
|
|
|
|
// ) |
|
|
|
|
|
// wait(for: [expt], timeout: 5.0) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func testFetchHotLines() { |
|
|
|
|
|
// let service = HomeService() |
|
|
|
|
|
// service.fetchHotLines() |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func testFetchCountryService() { |
|
|
|
|
|
// let expt = expectation(description: "testDynamicReceiver") |
|
|
|
|
|
// let service = SetupRecipientService() |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func testDynamicReceiver() { |
|
|
|
|
|
let expt = expectation(description: "testDynamicReceiver") |
|
|
|
|
|
let service = SetupRecipientService() |
|
|
|
|
|
|
|
|
|
|
|
service.fetchDynamicReceiverFields( |
|
|
|
|
|
of: "104", |
|
|
|
|
|
paymentModeID: "2", |
|
|
|
|
|
success: { |
|
|
|
|
|
print($0.dynamicField?.count ?? 0) |
|
|
|
|
|
expt.fulfill() |
|
|
|
|
|
}, |
|
|
|
|
|
failure: { |
|
|
|
|
|
XCTAssert(false, $0.localizedDescription) |
|
|
|
|
|
expt.fulfill() |
|
|
|
|
|
} |
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
wait(for: [expt], timeout: 5.0) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func testFecthRecipients() { |
|
|
func testFecthRecipients() { |
|
|
let expt = expectation(description: "testFecthRecipients") |
|
|
let expt = expectation(description: "testFecthRecipients") |
|
|
let service = RecipientsService() |
|
|
let service = RecipientsService() |
|
@ -86,50 +30,6 @@ class APITest: XCTestCase { |
|
|
wait(for: [expt], timeout: 1000.0) |
|
|
wait(for: [expt], timeout: 1000.0) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func testFetchBranch() { |
|
|
|
|
|
let expt = expectation(description: "textFetchBranch") |
|
|
|
|
|
let service = TablePresenterService() |
|
|
|
|
|
|
|
|
|
|
|
service.fetchBranches( |
|
|
|
|
|
countryCode: "", |
|
|
|
|
|
bankID: "", |
|
|
|
|
|
branchName: "", |
|
|
|
|
|
success: { |
|
|
|
|
|
print($0.count) |
|
|
|
|
|
expt.fulfill() |
|
|
|
|
|
XCTAssert(true) |
|
|
|
|
|
}, |
|
|
|
|
|
failure: { |
|
|
|
|
|
expt.fulfill() |
|
|
|
|
|
XCTAssert(false, $0.localizedDescription) |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
wait(for: [expt], timeout: 5.0) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func testDomeRemitStart() { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func testRecentHistories() { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func testGetName() { |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func testFetchBalance() { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func testDomesticTransactionHistories() { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func testDomesticReceipt() { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func testLoadFormKYC() { |
|
|
func testLoadFormKYC() { |
|
|
let service = NewRegisterStep1Service() |
|
|
let service = NewRegisterStep1Service() |
|
|
let expt = expectation(description: "testLoadFormKYC") |
|
|
let expt = expectation(description: "testLoadFormKYC") |
|
|