Last active
July 18, 2019 09:05
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class EmployeeInfoRequest { | |
#if MOCK_URL_PROTOCOL | |
class iMockURLProtocol: MockURLProtocol { | |
override func startLoading() { | |
iMockURLProtocol.requestHandler = { request in | |
let response = HTTPURLResponse.init(url: request.url!, statusCode: 200, httpVersion: "2.0", headerFields: nil)! | |
return (response,mockEmployeeInfoData) | |
} | |
super.startLoading() | |
} | |
} | |
#endif | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment