Last active
March 17, 2022 06:03
-
-
Save Bharathh-Raj/9504e0b8df57cda09e599f2441293ef4 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
//Note: This code is just for demonstration purpose | |
class MockRemoteDateSourceSuccess implements RemoteDateSource { | |
@override | |
Future<String> fetch() async { | |
return Future.value("Mock Result"); | |
} | |
} | |
class MockRemoteDateSourceFailure implements RemoteDateSource { | |
@override | |
Future<String> fetch() async { | |
throw SocketException("Mock exception"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment