public async Task <List <DocumentInfoDto> > Handle(GetDocumentsQuery request, CancellationToken cancellationToken)
        {
            if (request == null)
            {
                throw new ArgumentNullException(nameof(request));
            }

            var documents = await domainRepository.GetDocuments(sortHelper.CreateSortQuery(request.OrderBy));

            return(documents.Select(x => new DocumentInfoDto(x.Name, x.FileSize, x.Location)).ToList());
        }
        public void ShouldCreateCreateSortQuery(string queryParameter, string expectedSortQuery)
        {
            var sortQuery = sortHelper.CreateSortQuery(queryParameter);

            Assert.That(sortQuery, Is.EqualTo(expectedSortQuery));
        }