public when_sending_request_for_data_provider_to_workflow_bus() { _requestId = Guid.NewGuid(); _packageId = new Guid("E2E91BEA-B301-4CAD-A58A-425BC613C22C"); _contractId = new Guid("5B6DC4A1-C598-4751-8274-1AE366AC061A"); _userId = new Guid("7A6E95C4-46B6-460A-89E6-259BA6792FD0"); _packageVersion = 1; _packageCostPrice = 10; _packageRecommendedPrice = 100; _system = "API"; _accountNumber = "UNITTEST0001"; _bus = WorkflowBusBuilder.ForWorkflowBus(_requestId); }
public WorkflowCommandBuilder(ISendWorkflowCommand bus, Guid packageId, Guid contractId, Guid userId, long packageVersion, Guid requestId, string system, string accountNumber, double packageCostPrice, double packageRecommendedPrice) { _requestId = requestId; _bus = bus; _packageId = packageId; _contractId = contractId; _userId = userId; _packageVersion = packageVersion; _system = system; _accountNumber = accountNumber; _packageCostPrice = packageCostPrice; _packageRecommendedPrice = packageRecommendedPrice; _Watch = new StopWatchFactory().StopWatchForDataProvider(DataProviderCommandSource.EntryPoint); }
private void Init(Guid requestId) { _command = CommandSender.InitCommandSender(_bus, requestId, DataProviderCommandSource.EntryPoint); _logCommand = LogCommandTypes.ForEntryPoint(_command, DataProviderNoRecordState.Billable); _workflow = new SendWorkflowCommands(_bus,requestId); }
public WorkflowQueueSender InitQueue(ISendWorkflowCommand workflow) { _workflow = workflow; return this; }
public CommandSender(ISendWorkflowCommand workflow) { Workflow = workflow; }