Skip to content

Instantly share code, notes, and snippets.

@djds23
Created November 15, 2018 15:01
Show Gist options
  • Save djds23/3ba80fa27f4f72abee58c0ee6d7868b8 to your computer and use it in GitHub Desktop.
Save djds23/3ba80fa27f4f72abee58c0ee6d7868b8 to your computer and use it in GitHub Desktop.
struct FollowerNetworkingMock: FollowNetworkHandler {
let mockFollowers: [User]
let followResponse: Response
func follow(user: User) -> Observable<Response> {
return .just(followResponse)
}
func followers() -> Observable<[User]> {
return .just(mockFollowers)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment