public async Task Send_workflow_start_request_to_amazon_swf() { var response = new StartWorkflowExecutionResponse() { Run = new Run() }; _amazonWorkflowClient.Setup(c => c.StartWorkflowExecutionAsync( It.IsAny <StartWorkflowExecutionRequest>(), It.IsAny <CancellationToken>())) .Returns(Task.FromResult(response)); var startRequest = new StartWorkflowRequest("workflowName", "version", "workflowId") { ChildPolicy = ChildPolicy.Abandon, TaskListName = "tlist", ExecutionStartToCloseTimeout = TimeSpan.FromSeconds(10), Input = "input", LambdaRole = "lrole", Tags = new List <string> { "tag1", "tag2" }, TaskPriority = 2, TaskStartToCloseTimeout = TimeSpan.FromSeconds(23) }; await _domain.StartWorkflowAsync(startRequest); AssertThatAmazonSwfIsSend(startRequest); }
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { StartWorkflowExecutionResponse response = new StartWorkflowExecutionResponse(); response.Run = RunUnmarshaller.Instance.Unmarshall(context); return(response); }
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { StartWorkflowExecutionResponse response = new StartWorkflowExecutionResponse(); UnmarshallResult(context, response); return(response); }
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { StartWorkflowExecutionResponse response = new StartWorkflowExecutionResponse(); context.Read(); response.StartWorkflowExecutionResult = StartWorkflowExecutionResultUnmarshaller.GetInstance().Unmarshall(context); return(response); }
private static void UnmarshallResult(JsonUnmarshallerContext context, StartWorkflowExecutionResponse response) { response.Run = RunUnmarshaller.GetInstance().Unmarshall(context); return; }