public when_requesting_data_from_ivid_source() { _requestDataFromService = new RequestDataFromIvidSource(); _ividRequest = new LicensePlateRequestBuilder().ForIvid(); _laceResponse = new Collection<IPointToLaceProvider>(); _externalWebServiceCall = new FakeCallingIvidExternalWebService(); }
public when_requesting_data_from_rgt_vin_source() { _requestDataFromService = new RequestDataFromIvidSource(); _rgtVinRequest = new LicensePlateRequestBuilder().ForRgtVin(); _response = new Collection<IPointToLaceProvider>(); //new LaceResponseBuilder().WithIvidResponseHandled(); _externalWebServiceCall = new FakeCallingRgtVinExternalWebService(); }
public when_requesting_data_from_lightsone_business_compan_source() { _command = MonitoringBusBuilder.ForLightstoneCompanyCommands(Guid.NewGuid()); _requestDataFromService = new RequestDataFromLightstoneCompany(); _response = new Collection<IPointToLaceProvider>(); _externalWebServiceCall = new FakeCallingLightstoneBusinessCompanyExternalWebService(); }
public when_requesting_data_from_ivid_title_holder_source() { _requestDataFromService = new RequestDatafromIvidTitleHolderSource(); _ividTitleHolderRequest = new LicensePlateRequestBuilder().ForIvidTitleHolder(); _response = new LaceResponseBuilder().WithIvidResponseHandled(); _externalWebServiceCall = new FakeCallingIvidTitleHolderExternalWebService(); }
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_requesting_data_from_lightstone_source() { _command = MonitoringBusBuilder.ForLightstoneCommands(Guid.NewGuid()); _requestDataFromSource = new RequestDataFromLightstoneAuto(); _request = new LicensePlateRequestBuilder().ForLightstoneVinNumber(); _response = new Collection<IPointToLaceProvider>(); _dataProvider = _request.GetFromRequest<IPointToLaceRequest>() .Package.DataProviders.Single(w => w.Name == DataProviderName.LSAutoCarStats_I_DB); _logCommand = LogCommandTypes.ForDataProvider(_command, DataProviderCommandSource.LSAutoCarStats_I_DB, _dataProvider, DataProviderNoRecordState.NonBillable); _callTheSource = new CallLightstoneAutoDataProvider(_dataProvider, new FakeDataProviderRepository(), _logCommand); }
public void FetchDataFromSource(ICollection<IPointToLaceProvider> response, ICallTheDataProviderSource externalWebService) { externalWebService.CallTheDataProvider(response); }
public ConsumeSource(IHandleDataProviderSourceCall handleDataProviderCall, ICallTheDataProviderSource dataProviderCall) { _handleDataProviderCall = handleDataProviderCall; _dataProviderCall = dataProviderCall; }