Last active
September 11, 2019 17:21
-
-
Save dougritter/b249821b7f2f47f089829c831084be2d to your computer and use it in GitHub Desktop.
Router Mock implementation
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
protocol Router { | |
func showHomeScreen() | |
} | |
class RouterMock: Router { | |
var showHomeWasCalled: Bool? | |
func showHomeScreen() { | |
showHomeWasCalled = true | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment