Skip to content

Instantly share code, notes, and snippets.

@Juanpe
Last active December 7, 2018 12:25
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 Juanpe/3a621ff58f63bb3133ca2f9d4ea31317 to your computer and use it in GitHub Desktop.
Save Juanpe/3a621ff58f63bb3133ca2f9d4ea31317 to your computer and use it in GitHub Desktop.
struct UserLocationMock: UserLocation {
var coordinate: Coordinate {
return Coordinate(latitude: 51.509865, longitude: -0.118092)
}
}
class UserLocationProviderMock: UserLocationProvider {
var locationBlockLocationValue: UserLocation?
var locationBlockErrorValue: UserLocationError?
func findUserLocation(then: @escaping UserLocationCompletionBlock) {
then(locationBlockLocationValue, locationBlockErrorValue)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment