Пример #1
0
        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));
        }
Пример #2
0
 protected BaseEmailWorkflowTask() : base()
 {
     AvailableTransitions.Add("done");
 }
 public FilterMediaWorkflowTask()
     : base()
 {
     AvailableTransitions.Add("contains_media");
     AvailableTransitions.Add("does_not_contain_media");
 }
Пример #4
0
 public FilterDocumentsWorkflowTask() : base()
 {
     AvailableTransitions.Add("contains_docs");
     AvailableTransitions.Add("does_not_contain_docs");
 }
Пример #5
0
 public DelayWorkflowTask() : base()
 {
     AvailableTransitions.Add("done");
 }
 public UserDecisionWorkflowTask()
     : base()
 {
     AvailableTransitions.Add("approve");
     AvailableTransitions.Add("reject");
 }
Пример #7
0
 public WaitUntilTimeWorkflowTask()
     : base()
 {
     AvailableTransitions.Add("done");
 }
 public DecisionTask()
     : base()
 {
     AvailableTransitions.Add("yes");
     AvailableTransitions.Add("no");
 }
Пример #9
0
 public UrlInstantiatorRestartWorkflowTask()
     : base()
 {
     AvailableTransitions.Add("restart_workflow");
 }
 public DummyWorkflowTask() : base()
 {
     AvailableTransitions.Add("approve");
     AvailableTransitions.Add("reject");
 }
Пример #11
0
 public BitLyUrlShorteningTask() : base()
 {
     // A workflow task should let the designer know what possible outcomes
     AvailableTransitions.Add("done");
 }
Пример #12
0
 public PublishDocumentsWorkflowTask()
     : base()
 {
     AvailableTransitions.Add("done");
 }