Ejemplo n.º 1
0
        public async Task AccountQuestionsQuery_Ok()
        {
            var query  = new AccountQuestionsQuery(159039, "IL");
            var result = await fixture.QueryBus.QueryAsync(query, default);

            result.Should().NotBeNull();
        }
Ejemplo n.º 2
0
        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));
        }