public void GetAvailableTransitions_OnSuccess_It_Returns_List_Of_Issues() { AvailableTransitions returnData = new AvailableTransitions { Expand = "transitions", Transitions = new List <Transition>() }; returnData.Transitions.Add(new Transition { Id = 8, Name = "Trans1" }); returnData.Transitions.Add(new Transition { Id = 9, Name = "Trans2" }); jiraApiRequesterMock.Setup(m => m.DoAuthenticatedRequest <AvailableTransitions>(It.IsAny <IRestRequest>())).Returns(returnData); Assert.That(jiraClient.GetAvailableTransitions("KEY-3"), Is.EqualTo(returnData)); }
protected BaseEmailWorkflowTask() : base() { AvailableTransitions.Add("done"); }
public FilterMediaWorkflowTask() : base() { AvailableTransitions.Add("contains_media"); AvailableTransitions.Add("does_not_contain_media"); }
public FilterDocumentsWorkflowTask() : base() { AvailableTransitions.Add("contains_docs"); AvailableTransitions.Add("does_not_contain_docs"); }
public DelayWorkflowTask() : base() { AvailableTransitions.Add("done"); }
public UserDecisionWorkflowTask() : base() { AvailableTransitions.Add("approve"); AvailableTransitions.Add("reject"); }
public WaitUntilTimeWorkflowTask() : base() { AvailableTransitions.Add("done"); }
public DecisionTask() : base() { AvailableTransitions.Add("yes"); AvailableTransitions.Add("no"); }
public UrlInstantiatorRestartWorkflowTask() : base() { AvailableTransitions.Add("restart_workflow"); }
public DummyWorkflowTask() : base() { AvailableTransitions.Add("approve"); AvailableTransitions.Add("reject"); }
public BitLyUrlShorteningTask() : base() { // A workflow task should let the designer know what possible outcomes AvailableTransitions.Add("done"); }
public PublishDocumentsWorkflowTask() : base() { AvailableTransitions.Add("done"); }