public void ListMarketInformationCallsTheCorrectMethodFromTheUnderlyingMarketInformationQueryClass()
        {
            //Arrange
            var marketIdList = new List<int>(){1,2,3};
            var mockMarketInformationQuery = MockRepository.GenerateMock<MarketInformationQuery>(_mockConnection);
            mockMarketInformationQuery.Expect(x => x.ListMarketInformation(marketIdList))
                .Return(new ListMarketInformationResponseDTO());

            //Act
            var response = new MarketInformationService(mockMarketInformationQuery).ListMarketInformation(marketIdList);

            //Assert
            Assert.IsInstanceOfType(typeof(ListMarketInformationResponseDTO), response);
            mockMarketInformationQuery.VerifyAllExpectations();
        }
        public void MarketInformationServicePropertyLazyLoadsTheServiceTheFirstTimeItsCalled()
        {
            // Arrange
            var expectedMarketServiceReturned = new MarketInformationService(new MarketInformationQuery(_mockApiConnection.CoreConnection));

            _mockMarketInformationServiceFactory.Expect(x => x.Create(_mockApiConnection))
                .Return(expectedMarketServiceReturned)
                .Repeat.Once();

            // Act
            var marketService = _serviceManager.MarketInformationService;
            var marketServiceSecondCall = _serviceManager.MarketInformationService;

            // Assert
            Assert.AreEqual(expectedMarketServiceReturned, marketService);
            Assert.AreEqual(marketService, marketServiceSecondCall);
            _mockMarketInformationServiceFactory.VerifyAllExpectations();
        }