Created
July 18, 2019 09:08
-
-
Save quangDecember/99109fdac972e0569f5a01e625ea6e35 to your computer and use it in GitHub Desktop.
This file contains 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
protocol APIRequest { | |
func mockURLProtocolClass() -> AnyClass? | |
} | |
extension APIRequest { | |
func mockURLProtocolClass() -> AnyClass? { | |
return nil | |
} | |
} | |
class EmployeeInfoRequest : APIRequest { | |
func mockURLProtocolClass() -> AnyClass? { | |
return iMockURLProtocol.self | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment