コード例 #1
0
        public async Task ChangeStateForArtifactAsync_NewDesiredStateSameAsExistingState_ThrowsException()
        {
            var controller = new WorkflowController(_workflowServiceMock.Object);

            await controller.ChangeStateForArtifactAsync(1, new WorkflowStateChangeParameter
            {
                ToStateId        = 1,
                FromStateId      = 1,
                CurrentVersionId = 1
            });
        }
コード例 #2
0
        public async Task ChangeStateForArtifactAsync_WorkflowStateChangeParameterNull_ThrowsException()
        {
            var controller = new WorkflowController(_workflowServiceMock.Object);

            await controller.ChangeStateForArtifactAsync(1, null);
        }
コード例 #3
0
        public async Task ChangeStateForArtifactAsync_InvalidArtifactId_ThrowsException()
        {
            var controller = new WorkflowController(_workflowServiceMock.Object);

            await controller.ChangeStateForArtifactAsync(0, new WorkflowStateChangeParameter());
        }
コード例 #4
0
        public async Task GetTransitionsAsync_InvalidWorkflowId_ThrowsException()
        {
            var controller = new WorkflowController(_workflowServiceMock.Object);

            await controller.GetTransitionsAsync(1, 0, 1);
        }