Last active
December 7, 2018 12:25
-
-
Save Juanpe/3a621ff58f63bb3133ca2f9d4ea31317 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
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