public void Setup() { _workflowRepository = new Mock <IWorkflowRepository>(MockBehavior.Strict); _artifactVersionsRepository = new Mock <IArtifactVersionsRepository>(MockBehavior.Strict); _versionControlService = new Mock <IVersionControlService>(MockBehavior.Loose); _reuseRepository = new Mock <IReuseRepository>(MockBehavior.Loose); _saveArtifactRepositoryMock = new Mock <ISaveArtifactRepository>(MockBehavior.Loose); _applicationSettingsRepositoryMock = new Mock <IApplicationSettingsRepository>(MockBehavior.Loose); _serviceLogRepositoryMock = new Mock <IServiceLogRepository>(MockBehavior.Loose); _usersRepositoryMock = new Mock <IUsersRepository>(MockBehavior.Loose); _webhooksRepositoryMock = new Mock <IWebhooksRepository>(MockBehavior.Loose); _projectMetaRepositoryMock = new Mock <IProjectMetaRepository>(MockBehavior.Loose); _stateChangeExecutorRepositories = new StateChangeExecutorRepositories(_artifactVersionsRepository.Object, _workflowRepository.Object, _versionControlService.Object, _reuseRepository.Object, _saveArtifactRepositoryMock.Object, _applicationSettingsRepositoryMock.Object, _serviceLogRepositoryMock.Object, _usersRepositoryMock.Object, _webhooksRepositoryMock.Object, _projectMetaRepositoryMock.Object); _stateChangeExecutorHelper = new StateChangeExecutorHelper(_stateChangeExecutorRepositories); }
public WorkflowService(ISqlHelper sqlHelper, IItemInfoRepository itemInfoRepository, IStateChangeExecutorRepositories stateChangeExecutorRepositories, IWorkflowEventsMessagesHelper workflowEventsMessagesHelper) { _sqlHelper = sqlHelper; _itemInfoRepository = itemInfoRepository; _stateChangeExecutorRepositories = stateChangeExecutorRepositories; _workflowEventsMessagesHelper = workflowEventsMessagesHelper; }
public StateChangeExecutor( int userId, WorkflowStateChangeParameterEx input, ISqlHelper sqlHelper, IStateChangeExecutorRepositories stateChangeExecutorRepositories, IStateChangeExecutorHelper stateChangeExecutorHelper, IWorkflowEventsMessagesHelper workflowEventsMessagesHelper) { _userId = userId; _input = input; _sqlHelper = sqlHelper; _stateChangeExecutorRepositories = stateChangeExecutorRepositories; _stateChangeExecutorHelper = stateChangeExecutorHelper; _workflowEventsMessagesHelper = workflowEventsMessagesHelper; }
public StateChangeExecutorHelper(IStateChangeExecutorRepositories stateChangeExecutorRepositories) { _stateChangeExecutorRepositories = _stateChangeExecutorRepositories = stateChangeExecutorRepositories; }