public async Task <IActionResult> GetGraphData([FromQuery] GetGraphDataRequest request)
        {
            var validationResult = await RequestValidator.Validate(request);

            if (!validationResult.IsValid)
            {
                throw new BadRequestException(validationResult.Errors);
            }

            var queryFilter = Mapper.Map <GetGraphDataRequest, QueryFilter>(request);

            var graphData = await Service.GetGraohData(queryFilter, CorrelationId);

            return(Ok(graphData));
        }
        public async Task GetGraphOtionsValidatorPassesTest()
        {
            var mockRequest = new GetGraphDataRequest
            {
                FromDate   = DateTime.Parse("2020-12-19 00:00:00"),
                ToDate     = DateTime.Parse("2020-12-21 00:00:00"),
                PageNumber = 2,
                PageSize   = 25
            };

            var result = await _validator.ValidateAsync(mockRequest);

            result.IsValid.Should().BeTrue();
            result.Errors.Count.Should().Be(0);

            await Task.CompletedTask;
        }