/// <summary>
        /// Get all labels for a given group.
        /// </summary>
        /// <param name="groupId">The ID, path or <see cref="Group"/> of the group.</param>
        /// <param name="options">Query options</param>
        public async Task <IList <GroupLabel> > GetLabelsAsync(GroupId groupId,
                                                               Action <GroupLabelsQueryOptions> options = null)
        {
            var labelOptions = new GroupLabelsQueryOptions();

            options?.Invoke(labelOptions);

            string url = _queryGroupLabelBuilder.Build($"groups/{groupId}/labels", labelOptions);

            return(await _httpFacade.GetPagedList <GroupLabel>(url));
        }
        public void NonDefaultQueryBuilt()
        {
            var sut = new GroupLabelsQueryBuilder();

            string query = sut.Build(
                "https://gitlab.com/api/v4/groups/123/labels",
                new GroupLabelsQueryOptions
            {
                WithCounts            = true,
                IncludeAncestorGroups = false
            });

            query.Should().Be("https://gitlab.com/api/v4/groups/123/labels?" +
                              "with_counts=true&" +
                              "include_ancestor_groups=false");
        }