public async Task ChangeStateForArtifactAsync_NewDesiredStateSameAsExistingState_ThrowsException() { var controller = new WorkflowController(_workflowServiceMock.Object); await controller.ChangeStateForArtifactAsync(1, new WorkflowStateChangeParameter { ToStateId = 1, FromStateId = 1, CurrentVersionId = 1 }); }
public async Task ChangeStateForArtifactAsync_WorkflowStateChangeParameterNull_ThrowsException() { var controller = new WorkflowController(_workflowServiceMock.Object); await controller.ChangeStateForArtifactAsync(1, null); }
public async Task ChangeStateForArtifactAsync_InvalidArtifactId_ThrowsException() { var controller = new WorkflowController(_workflowServiceMock.Object); await controller.ChangeStateForArtifactAsync(0, new WorkflowStateChangeParameter()); }
public async Task GetTransitionsAsync_InvalidWorkflowId_ThrowsException() { var controller = new WorkflowController(_workflowServiceMock.Object); await controller.GetTransitionsAsync(1, 0, 1); }