public async Task GetAppealUpload_Gets_AppealUpload_For_Application_Appeal()
        {
            var request     = new GetAppealUploadRequest();
            var queryResult = AutoFixture.Create <GetAppealUploadQueryResult>();

            _mediator.Setup(x => x.Send(It.IsAny <GetAppealUploadQuery>(), It.IsAny <CancellationToken>())).ReturnsAsync(queryResult);

            var result = await _controller.GetAppealUpload(request);

            result.Should().BeOfType <ActionResult <GetAppealUploadResponse> >();

            Assert.AreEqual(queryResult.Filename, result.Value.Filename);
            Assert.AreEqual(queryResult.Content, result.Value.Content);
            Assert.AreEqual(queryResult.ContentType, result.Value.ContentType);
        }
        public async Task <ActionResult <GetAppealUploadResponse> > GetAppealUpload([FromRoute] GetAppealUploadRequest request)
        {
            var query = new GetAppealUploadQuery
            {
                ApplicationId  = request.ApplicationId,
                AppealId       = request.AppealId,
                AppealUploadId = request.AppealUploadId,
            };

            var result = await _mediator.Send(query);

            return(new GetAppealUploadResponse
            {
                Filename = result.Filename,
                ContentType = result.ContentType,
                Content = result.Content
            });
        }