aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline.Tests/IntegratedTests/HttpClientUserExtensions.cs
blob: 81787eef76bce4dfa62e2168fe534830716f3408 (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<UserInfo> GetUserAsync(this HttpClient client, string username)
            => client.TestGetAsync<UserInfo>($"users/{username}");
    }
}