public async Task AccountQuestionsQuery_Ok() { var query = new AccountQuestionsQuery(159039, "IL"); var result = await fixture.QueryBus.QueryAsync(query, default); result.Should().NotBeNull(); }
public async Task <IEnumerable <AccountQuestionDto> > GetQuestionsAsync([ProfileModelBinder(ProfileServiceQuery.Country)] UserProfile profile, CancellationToken token) { var userId = _userManager.GetLongUserId(User); var query = new AccountQuestionsQuery(userId, profile.Country); return(await _queryBus.QueryAsync(query, token)); }