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