public async Task AdminUserFlagsOthersQuery_Ok() { var q1 = new UserFlagsOthersQuery(3, 0, "IL"); var q2 = new UserFlagsOthersQuery(2, 2, "IL"); var t1 = _fixture.QueryBus.QueryAsync(q1, default); var t2 = _fixture.QueryBus.QueryAsync(q2, default); await Task.WhenAll(t1, t2); }
public async Task <UsersFlagsResponse> GetFlags(int minFlags, int page, CancellationToken token) { var country = User.GetCountryClaim(); var query = new UserFlagsOthersQuery(minFlags, page, country); var res = await _queryBus.QueryAsync(query, token); return(new UsersFlagsResponse { Flags = res.Item1, Rows = res.Item2 }); }