blob: 7ca62e38c3ebde53e8e0b419db282606c21dc4fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
using System.Net.Http;
using System.Threading.Tasks;
using Timeline.Models.Http;
namespace Timeline.Tests.IntegratedTests
{
public static class HttpClientUserExtensions
{
public static Task<HttpUser> GetUserAsync(this HttpClient client, string username)
=> client.TestGetAsync<HttpUser>($"users/{username}");
}
}
|