Created
January 19, 2015 17:12
-
-
Save raphaelmor/db77d263545031122ca5 to your computer and use it in GitHub Desktop.
Who said we don't need mocks in Swift...
This file contains hidden or 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
class MockDataSource : TransporterDataSource { | |
var startUpdatingLocationCalled = 0 | |
var stopUpdatingLocationCalled = 0 | |
func startUpdatingLocation() { | |
startUpdatingLocationCalled++ | |
} | |
func stopUpdatingLocation() { | |
stopUpdatingLocationCalled++ | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment