public IConversionWorkflow BuildWorkflow(string targetFileName, IErrorNotifier errorNotifier)
        {
            var profileChecker         = _container.GetInstance <IProfileChecker>();
            var targetFileNameComposer = new ComTargetFileNameComposer(targetFileName);
            var jobRunner      = _container.GetInstance <IJobRunner>();
            var jobDataUpdater = _container.GetInstance <IJobDataUpdater>();

            return(new ConversionWorkflow(profileChecker, targetFileNameComposer, jobRunner, jobDataUpdater, errorNotifier));
        }
예제 #2
0
        public IConversionWorkflow BuildWorkflow(string targetFileName)
        {
            var profileChecker         = _container.GetInstance <IProfileChecker>();
            var targetFileNameComposer = new ComTargetFileNameComposer(targetFileName);
            var jobRunner       = _container.GetInstance <IJobRunner>();
            var jobDataUpdater  = _container.GetInstance <IJobDataUpdater>();
            var outputFileMover = _container.GetInstance <AutosaveOutputFileMover>();

            return(new AutoSaveWorkflow(jobDataUpdater, jobRunner, profileChecker, targetFileNameComposer, outputFileMover));
        }