Beispiel #1
0
        /// <summary>
        ///     Call all pre conversion actions according to the configuration
        /// </summary>
        /// <param name="job"></param>
        private void CallPreConversionActions(Job job)
        {
            _logger.Trace("Setting up pre conversion actions");
            var preConversionActions = _actionManager.GetApplicablePreConversionActions(job);

            CallActions(job, preConversionActions);
        }
Beispiel #2
0
        public async Task RunJob_CallsAllPreConversionActions()
        {
            var jobRunner = BuildJobRunner();
            var job       = BuildJob();

            var actions = new[]
            {
                BuildPreConversionAction(),
                BuildPreConversionAction()
            };

            _actionManager.GetApplicablePreConversionActions(job).Returns(actions);

            await jobRunner.RunJob(job, _outputFileMover);

            foreach (var action in actions)
            {
                action.Received().ProcessJob(job);
            }
        }