public GetBusinessItemDetailsService(
     IOptions <GetParliamentEventDetailsSettings> getParliamentEventDetailsSettings,
     IGetParliamentEventDetails getParliamentEventDetails,
     IValidateBusinessItemsDetailsBusinessRules validateBusinessItemsDetailsBusinessRules)
 {
     _getParliamentEventDetails = getParliamentEventDetails;
     _validateBusinessItemsDetailsBusinessRules = validateBusinessItemsDetailsBusinessRules;
     _getParliamentEventDetailsSettings         = getParliamentEventDetailsSettings.Value;
 }
        public void Setup()
        {
            _stubGetParliamentEventDetails         = Substitute.For <IGetParliamentEventDetails>();
            _stubGetParliamentEventDetailsSettings = Substitute.For <IOptions <GetParliamentEventDetailsSettings> >();
            _businessItemsDetailsBusinessRules     = new BusinessItemsDetailsBusinessRules();

            _dummyEventDetailsEndpoint = "dummy event details endpoint";

            _eventId = 1;

            _stubGetParliamentEventDetailsSettings
            .Value
            .Returns(
                new GetParliamentEventDetailsSettings
            {
                EndPoint = _dummyEventDetailsEndpoint
            });

            _startDate = new DateTime(2019, 1, 1);
            _endDate   = new DateTime(2019, 2, 1);
        }