public async Task <IEnumerable <PendingTutorsDto> > GetPendingTutorsAsync([FromServices] IUrlBuilder urlBuilder, CancellationToken token)
        {
            var query = new PendingTutorsQuery(User.GetCountryClaim());
            var res   = await _queryBus.QueryAsync(query, token);

            return(res.Select(item =>
            {
                item.Image = urlBuilder.BuildUserImageEndpoint(item.Id, item.Image);
                return item;
            }));
        }
Exemple #2
0
 public async Task AdminPendingTutorsQuery_Ok(string country)
 {
     var query = new PendingTutorsQuery(country);
     await _fixture.QueryBus.QueryAsync(query, default);
 }