Created
December 15, 2016 02:35
-
-
Save jonathanpeppers/60d3c8bc2bb0ec1a8b4af7fdf4a6700b to your computer and use it in GitHub Desktop.
For Packt, a piece of FakeWebService
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
public async Task<User> Register(User user) | |
{ | |
await Sleep(); | |
return user; | |
} | |
public async Task<User[]> GetFriends(string userId) | |
{ | |
await Sleep(); | |
return new[] | |
{ | |
new User { Name = "bobama" }, | |
new User { Name = "bobloblaw" }, | |
new User { Name = "georgemichael" }, | |
}; | |
} | |
public async Task<User> AddFriend( | |
string username, string friendName) | |
{ | |
await Sleep(); | |
return new User { Name = friendName }; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment