public void AppendModifications()
        {
            WorkflowResult result = new WorkflowResult();
            Modification mod1 = new Modification();
            Modification mod2 = new Modification();
            result.Modifications = new Modification[] { mod1 };
            result.Modifications = new Modification[] { mod2 };

            Assert.AreEqual(2, result.Modifications.Length);
            Assert.AreEqual(mod1, result.Modifications[0]);
            Assert.AreEqual(mod2, result.Modifications[1]);
        }
Esempio n. 2
0
        public IIntegrationResult RunIntegration(IIntegrationResult result)
        {
            _currentIntegrationResult = new WorkflowResult();

            foreach (ITask task in Tasks)
            {
                try
                {
                    RunTask(task);
                }
                catch (CruiseControlException ex)
                {
                    _currentIntegrationResult.ExceptionResult = ex;
                }
            }
            return(_currentIntegrationResult);
        }
Esempio n. 3
0
        public IIntegrationResult Integrate(IntegrationRequest request)
        {
            _currentIntegrationResult = new WorkflowResult();

            foreach (ITask task in Tasks)
            {
                try
                {
                    RunTask(task);
                }
                catch (CruiseControlException ex)
                {
                    _currentIntegrationResult.ExceptionResult = ex;
                }
            }
            return _currentIntegrationResult;
        }