public async Task AdminConversationDetailsQuery_WrongCountry_Ok(string id, string country) { var query = new ConversationDetailsQuery(id, country); var res = await _fixture.QueryBus.QueryAsync(query, default); res.Should().HaveCount(0); }
//[Authorize(Policy = Policy.IsraelUser)] public async Task <IEnumerable <ConversationDetailsDto> > ConversationDetailAsync( [FromRoute] string identifier, [FromServices] IUrlBuilder urlBuilder, CancellationToken token) { var query = new ConversationDetailsQuery(identifier, User.GetCountryClaim()); var res = await _queryBus.QueryAsync(query, token); return(res.Select(item => { item.Image = urlBuilder.BuildUserImageEndpoint(item.UserId, item.Image); return item; })); }