public LightstoneAutoDataProvider(ICollection<IPointToLaceRequest> request, IExecuteTheDataProviderSource nextSource,
     IExecuteTheDataProviderSource fallbackSource, ISendCommandToBus command)
     : base(nextSource, fallbackSource)
 {
     _request = request;
     _command = command;
 }
 public when_initializing_lace_handlers_for_ivid_title_holder()
 {
     _command = MonitoringBusBuilder.ForIvidTitleHolderCommands(Guid.NewGuid());
     _request = new LicensePlateRequestBuilder().ForIvidTitleHolder();
     _response = new LaceResponseBuilder().WithIvidResponseHandled();
     _dataProvider = new IvidTitleHolderDataProvider(_request, null, null,_command);
 }
 public when_initializing_lace_handlers_for_lightstone()
 {
     _command = MonitoringBusBuilder.ForLightstoneCommands(Guid.NewGuid());
     _request = new LicensePlateRequestBuilder().ForLightstoneLicensePlate();
     _response = new LaceResponseBuilder().WithIvidResponseHandled();
     _dataProvider = new LightstoneAutoDataProvider(_request, null, null, _command);
 }
 public when_initializing_lace_handlers_for_Lightstone_business_director_request()
 {
     _command = MonitoringBusBuilder.ForLightstoneDirectorCommands(Guid.NewGuid());
     _request = new DirectorRequestBuilder().ForLightstoneDirector();
     _response = new Collection<IPointToLaceProvider>();
     _dataProvider = new LightstoneDirectorDataProvider(_request, null, null, _command);
 }
 public when_initializing_lace_handlers_for_rgt_vin()
 {
     _command = MonitoringBusBuilder.ForRgtVinCommands(Guid.NewGuid());
     _request = new LicensePlateRequestBuilder().ForRgtVin();
     _response = new LaceResponseBuilder().WithIvidResponseHandled();
     _dataProvider = new RgtVinDataProvider(_request, null, null, _command);
 }
 public when_initializing_lace_handlers_for_signio_drivers_license_decryption()
 {
     _command = MonitoringBusBuilder.ForSignioDriversLicenseCommands(Guid.NewGuid());
     _request = new DriversLicenseRequestBuilder().ForDriversLicenseScan();
     _response = new Collection<IPointToLaceProvider>();
     _dataProvider = new SignioDataProvider(_request, null, null, _command);
 }
 public when_initializing_lace_handlers_for_mmcode_with_carid()
 {
     _command = MonitoringBusBuilder.ForRgtCommands(Guid.NewGuid());
     _request = new LicensePlateRequestBuilder().ForMmCode();
     _response = new Collection<IPointToLaceProvider>();
     _dataProvider = new MmCodeDataProvider(_request, null, null, _command);
 }
 public FakeIvidTitleHolderSourceExecution(ICollection<IPointToLaceRequest> request, IExecuteTheDataProviderSource nextSource,
     IExecuteTheDataProviderSource fallbackSource, ISendCommandToBus command)
     : base(nextSource, fallbackSource)
 {
     _request = request;
     _command = command;
 }
 public when_initializing_lace_handlers_for_ivid_title_holder_with_absa_financed_interest()
 {
     _command = MonitoringBusBuilder.ForIvidTitleHolderCommands(Guid.NewGuid());
     _request = new LicensePlateRequestBuilder().ForIvidTitleHolderWithAbsaFinancedInterest();
     _response = new LaceResponseBuilder().WithIvidResponseAndFinancedInterestVin();
     _dataProvider = new IvidTitleHolderDataProvider(_request, null, null, _command);
 }
 public ConsumerSpecificationsDataProvider(ICollection<IPointToLaceRequest> request, IExecuteTheDataProviderSource nextSource,
     IExecuteTheDataProviderSource fallbackSource, ISendCommandToBus command)
     : base(nextSource, fallbackSource)
 {
     _request = request;
     _command = command;
 }
 public RgtVinDataProvider(ICollection<IPointToLaceRequest> request, IExecuteTheDataProviderSource nextSource,
     IExecuteTheDataProviderSource fallbackSource, ISendCommandToBus command)
     : base(nextSource, fallbackSource)
 {
     _request = request;
     _handleServiceCall = new FakeHandleRgtVinServiceCall();
     _externalWebServiceCall = new FakeCallingRgtVinExternalWebService();
     _command = command;
 }
        public when_initializing_lace_handlers_for_Lightstone_property_request()
        {
            _command = MonitoringBusBuilder.ForLightstonePropertyCommands(Guid.NewGuid());
            var lspRequestBuilder = new LspRequestBuilder();

            _request = lspRequestBuilder.ForReturnProperties();
            _response = new Collection<IPointToLaceProvider>();
            _dataProvider = new LightstonePropertyDataProvider(_request, null, null, _command);
        }
 public when_response_has_a_technical_failure()
 {
     _command = MonitoringBusBuilder.ForLightstoneCommands(Guid.NewGuid());
     _request = new LicensePlateRequestBuilder().ForLightstoneLicensePlate();
     var ividResponse = IvidResponse.WithState(DataProviderResponseState.TechnicalError);
     ividResponse.HasBeenHandled();
     _response = new Collection<IPointToLaceProvider>()
     {
         ividResponse
     }; 
     _dataProvider = new LightstoneAutoDataProvider(_request, null, null, _command);
 }
 public when_previous_response_has_no_records_and_this_response_has_no_records()
 {
     _command = MonitoringBusBuilder.ForLightstoneCommands(Guid.NewGuid());
     _request = new LicensePlateRequestBuilder().ForLightstoneLicensePlate();
     var ividResponse = IvidResponse.WithState(DataProviderResponseState.NoRecords);
     ividResponse.HasBeenHandled();
     _response = new Collection<IPointToLaceProvider>()
     {
         ividResponse
     }; 
     _dataProvider = new LightstoneAutoDataProvider(_request, null, null, _command);
 }
        public when_both_responses_are_successfull_response_state()
        {
            _command = MonitoringBusBuilder.ForLightstoneCommands(Guid.NewGuid());
            _request = new LicensePlateRequestBuilder().ForLightstoneLicensePlate();
            var ividResponse = IvidResponse.WithState(DataProviderResponseState.Successful);
            ividResponse.HasBeenHandled();

            var lightstoneResponse = LightstoneAutoResponse.WithState(DataProviderResponseState.Successful);
            lightstoneResponse.HasBeenHandled();

            _response = new Collection<IPointToLaceProvider>()
            {
                ividResponse,
                lightstoneResponse
            };
            _dataProvider = new LightstoneAutoDataProvider(_request, null, null, _command);
        }
 public ExecuteSourceBase(IExecuteTheDataProviderSource nextSource, IExecuteTheDataProviderSource fallbackSource)
 {
     Next = nextSource;
     FallBack = fallbackSource;
 }