private Report ConfigureReportAndHandlerWithHttpClientReturning(HttpStatusCode httpStatusCode, out Mock <HttpMessageHandler> mockHttpMessageHandler)
        {
            mockHttpMessageHandler = new Mock <HttpMessageHandler>(MockBehavior.Strict);

            mockHttpMessageHandler
            .Protected()
            .Setup <Task <HttpResponseMessage> >(
                "SendAsync",
                ItExpr.IsAny <HttpRequestMessage>(),
                ItExpr.IsAny <CancellationToken>()
                )
            .ReturnsAsync(new HttpResponseMessage()
            {
                StatusCode = httpStatusCode
            })
            .Verifiable();

            var httpClient = new HttpClient(mockHttpMessageHandler.Object);

            var report = new Report(_mockDatabaseService.Object, _mockInstanceService.Object, _mockReportMetadataService.Object, httpClient);

            MockReportMetadataServiceHelper.SetupReportMetadataService <Terms>(_mockReportMetadataService, report);

            return(report);
        }
 protected virtual void InitializeCommonMocks(int majorVersion, string reportCodename)
 {
     _mockInstance              = MockInstances.Get(majorVersion);
     _mockInstanceDetails       = MockInstanceDetails.Get(majorVersion, _mockInstance);
     _mockInstanceService       = MockInstanceServiceHelper.SetupInstanceService(_mockInstance, _mockInstanceDetails);
     _mockDatabaseService       = MockDatabaseServiceHelper.SetupMockDatabaseService(_mockInstance);
     _mockCmsFileService        = MockCmsFileServiceHelper.SetupMockCmsFileService();
     _mockReportMetadataService = MockReportMetadataServiceHelper.GetBasicReportMetadataService <TermsType>(reportCodename);
 }