/// <summary>
        /// Retrieves notes (comments) of an issue.
        /// </summary>
        /// <param name="projectId">The ID, path or <see cref="Project"/> of the project.</param>
        /// <param name="issueIid">Iid of the issue.</param>
        /// <param name="options">IssueNotes retrieval options.</param>
        /// <returns>Notes satisfying options.</returns>
        public async Task <IList <Note> > GetNotesAsync(ProjectId projectId, int issueIid, Action <IssueNotesQueryOptions> options = null)
        {
            var queryOptions = new IssueNotesQueryOptions();

            options?.Invoke(queryOptions);

            string url = _projectIssueNotesQueryBuilder.Build($"projects/{projectId}/issues/{issueIid}/notes", queryOptions);

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

            string query = sut.Build(
                "https://gitlab.com/api/v4/project/1/issues/1/notes",
                new IssueNotesQueryOptions()
            {
                SortOrder = SortOrder.Ascending,
                Order     = NoteOrder.UpdatedAt
            });

            query.Should().Be("https://gitlab.com/api/v4/project/1/issues/1/notes?" +
                              "sort=asc&" +
                              "order_by=updated_at");
        }