Skip to content

Instantly share code, notes, and snippets.

@koromiko
Created November 13, 2017 03:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save koromiko/62522e79c2c73cd2c4b92edf96d47e56 to your computer and use it in GitHub Desktop.
Save koromiko/62522e79c2c73cd2c4b92edf96d47e56 to your computer and use it in GitHub Desktop.
class MockApiService: APIServiceProtocol {
var isFetchPopularPhotoCalled = false
func fetchPopularPhoto(complete: @escaping (Bool, [Photo], APIError?) -> ()) {
isFetchPopularPhotoCalled = true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment