public WorkflowCommandBuilder ForRequestReceived() { var queue = new WorkflowQueueSender(DataProviderCommandSource.EntryPoint); queue.InitQueue(_bus) .EntryPointRequest(new LicensePlateRequestBuilder().ForAllSources(), _Watch); return this; }
public WorkflowCommandBuilder ForSuccessfulCallIvid() { var queue = new WorkflowQueueSender(DataProviderCommandSource.IVIDVerify_E_WS); queue.InitQueue(_bus) .SendRequestToDataProvider("Web Service", "https://secure1.ubiquitech.co.za/ivid/ws/hpiService.wsdl", DataProviderAction.Request, DataProviderResponseState.Successful, new LicensePlateRequestBuilder().ForIvid(), 15, 30) .ReceiveResponseFromDataProvider("Web Service", "https://secure1.ubiquitech.co.za/ivid/ws/hpiService.wsdl", DataProviderAction.Response, DataProviderResponseState.Successful, new TransformIvidResponse(FakeIvidResponse.GetHpiStandardQueryResponseForLicenseNoXmc167Gp()).Result, 15, 30); return this; }
public WorkflowCommandBuilder ForIvidConfiguration() { var queue = new WorkflowQueueSender(DataProviderCommandSource.IVIDVerify_E_WS); queue.InitQueue(_bus) .Configuration( HandleRequest.GetHpiStandardQueryRequest( new LicensePlateRequestBuilder().ForIvid() .GetFromRequest<IPointToLaceRequest>() .Package.DataProviders.Single(w => w.Name == DataProviderName.IVIDVerify_E_WS).GetRequest<IAmIvidStandardRequest>()), null); return this; }
public WorkflowCommandBuilder ForFailedCallIvid() { var queue = new WorkflowQueueSender(DataProviderCommandSource.IVIDVerify_E_WS); queue.InitQueue(_bus) .SendRequestToDataProvider("Web Service", "https://secure1.ubiquitech.co.za/ivid/ws/hpiService.wsdl", DataProviderAction.Request, DataProviderResponseState.Successful, new LicensePlateRequestBuilder().ForIvid(), 15, 30) .ReceiveResponseFromDataProvider("Web Service", "https://secure1.ubiquitech.co.za/ivid/ws/hpiService.wsdl", DataProviderAction.Response, DataProviderResponseState.TechnicalError, null, 15, 30); return this; }
public WorkflowCommandBuilder ForFailedResponseToCaller() { var queue = new WorkflowQueueSender(DataProviderCommandSource.EntryPoint); queue.InitQueue(_bus) .EntryPointResponse( new List<IPointToLaceProvider>(), DataProviderResponseState.TechnicalError, new LicensePlateRequestBuilder().ForAllSources(), _Watch); return this; }
//public WorkflowCommandBuilder ForSuccessfulCallAudatex() //{ // var queue = new WorkflowQueueSender(DataProviderCommandSource.Audatex); // queue.InitQueue(_bus) // .SendRequestToDataProvider("Web Service", // "https://mobile.za.ax-aee.co.uk/audabridge/backofficeservice.asmx", DataProviderAction.Request, // DataProviderResponseState.Successful, new LicensePlateRequestBuilder().ForAudatex(), 0, 0) // .ReceiveResponseFromDataProvider("Web Service", // "https://mobile.za.ax-aee.co.uk/audabridge/backofficeservice.asmx", DataProviderAction.Response, // DataProviderResponseState.Successful, // new TransformAudatexResponse(new SourceResponseBuilder().ForAudatexWithHuyandaiHistory(), // new SourceResponseBuilder().ForAudatexWithLaceResponse(), // new LicensePlateRequestBuilder().ForAudatex().GetFromRequest<IPointToVehicleRequest>().Vehicle), // 0, 0); // return this; //} public WorkflowCommandBuilder ForSuccessfulCallToIvidTitleHolder() { var queue = new WorkflowQueueSender(DataProviderCommandSource.IVIDTitle_E_WS); queue.InitQueue(_bus) .SendRequestToDataProvider("Web Service", "https://secure1.ubiquitech.co.za:443/ivid/ws/", DataProviderAction.Request, DataProviderResponseState.Successful, new LicensePlateRequestBuilder().ForIvidTitleHolder(), 35, 70) .ReceiveResponseFromDataProvider("Web Service", "https://secure1.ubiquitech.co.za:443/ivid/ws/", DataProviderAction.Response, DataProviderResponseState.Successful, new TransformIvidTitleHolderResponse( FakeIvidTitleHolderQueryResponseData.GetTitleHolderResponseForLicenseNumber()), 35, 70); return this; }
public WorkflowCommandBuilder ForSuccessfulResponseToCaller() { var queue = new WorkflowQueueSender(DataProviderCommandSource.EntryPoint); queue.InitQueue(_bus) .EntryPointResponse( new TransformIvidResponse(FakeIvidResponse.GetHpiStandardQueryResponseForLicenseNoXmc167Gp()).Result, DataProviderResponseState.Successful, new LicensePlateRequestBuilder().ForAllSources(), _Watch) .CreateTransaction(_packageId, _packageVersion, _userId, _requestId, _contractId, _system, 0, DataProviderResponseState.Successful, _accountNumber, _packageCostPrice, _packageRecommendedPrice); return this; }
public WorkflowCommandBuilder ForFailedCallRgtVin() { var queue = new WorkflowQueueSender(DataProviderCommandSource.LSAutoVINMaster_I_DB); queue.InitQueue(_bus) .SendRequestToDataProvider("Database", "Data Source=.;Initial Catalog=Auto_Carstats;Integrated Security=True;", DataProviderAction.Request, DataProviderResponseState.Successful, new LicensePlateRequestBuilder().ForRgtVin(), 25, 50) .ReceiveResponseFromDataProvider("Database", "Data Source=.;Initial Catalog=Auto_Carstats;Integrated Security=True;", DataProviderAction.Response, DataProviderResponseState.TechnicalError, null, 25, 50); return this; }
public WorkflowCommandBuilder ForSuccessfulCallRgt() { var queue = new WorkflowQueueSender(DataProviderCommandSource.LSAutoSpecs_I_DB); queue.InitQueue(_bus) .SendRequestToDataProvider("Database", "Data Source=.;Initial Catalog=Auto_Carstats;Integrated Security=True;", DataProviderAction.Request, DataProviderResponseState.Successful, new LicensePlateRequestBuilder().ForRgt(), 30, 60) .ReceiveResponseFromDataProvider("Database", "Data Source=.;Initial Catalog=Auto_Carstats;Integrated Security=True;", DataProviderAction.Response, DataProviderResponseState.Successful, new TransformRgtResponse(new List<CarSpecification>()), 30, 60); return this; }
public WorkflowCommandBuilder ForSuccessfulCallLightstoneAuto() { var queue = new WorkflowQueueSender(DataProviderCommandSource.LSAutoCarStats_I_DB); queue.InitQueue(_bus) .SendRequestToDataProvider("Database", "Data Source=.;Initial Catalog=Auto_Carstats;Integrated Security=True;", DataProviderAction.Request, DataProviderResponseState.Successful, new LicensePlateRequestBuilder().ForLightstoneLicensePlate(), 20, 40) .ReceiveResponseFromDataProvider("Database", "Data Source=.;Initial Catalog=Auto_Carstats;Integrated Security=True;", DataProviderAction.Response, DataProviderResponseState.Successful, new TransformLightstoneResponse( FakeLighstoneRetrievalData.GetValuationFromMetrics( new RequestCarInformationForCarHavingId107483()), FakeLighstoneRetrievalData.GetCarInformation("SB1KV58E40F039277")) .Result, 20, 40); return this; }
public WorkflowCommandBuilder ForIvidTransformation() { var queue = new WorkflowQueueSender(DataProviderCommandSource.IVIDVerify_E_WS); queue.InitQueue(_bus) .Transformation( new TransformIvidResponse(FakeIvidResponse.GetHpiStandardQueryResponseForLicenseNoXmc167Gp()).Result, null); return this; }
public WorkflowCommandBuilder ForIvidSecurity() { var queue = new WorkflowQueueSender(DataProviderCommandSource.IVIDVerify_E_WS); queue.InitQueue(_bus) .Security(new { Credentials = new { UserName = "******", Password = "******" } }, new {ContextMessage = "Ivid Data Provider Credentials"}); return this; }