protected NewDirectConversionStart(IJobInfoQueue jobInfoQueue, IMaybePipedApplicationStarter maybePipedApplicationStarter, IJobInfoManager jobInfoManager, IDirectConversion directConversion) : base(maybePipedApplicationStarter) { _jobInfoQueue = jobInfoQueue; _jobInfoManager = jobInfoManager; DirectConversion = directConversion; }
public void Setup() { _directConversion = Substitute.For <IDirectConversion>(); _printFileHelper = Substitute.For <IPrintFileHelper>(); _fileWrap = Substitute.For <IFile>(); _directoryWrap = Substitute.For <IDirectory>(); _interactionInvoker = Substitute.For <IInteractionInvoker>(); _storedParametersManager = Substitute.For <IStoredParametersManager>(); _fileConversionHandler = new FileConversionAssistant(_directConversion, _printFileHelper, _fileWrap, _directoryWrap, _interactionInvoker, new UnitTestTranslationUpdater(), _storedParametersManager); _droppedFiles = new List <string> { "file1", "file2", "file3" }; }
public FileConversionAssistant(IDirectConversion directConversion, IPrintFileHelper printFileHelper, IFile file, IDirectory directory, IInteractionInvoker interactionInvoker, ITranslationUpdater translationUpdater, IStoredParametersManager storedParametersManager) { _directConversion = directConversion; _printFileHelper = printFileHelper; _file = file; _directory = directory; _interactionInvoker = interactionInvoker; _storedParametersManager = storedParametersManager; translationUpdater.RegisterAndSetTranslation(tf => _translation = tf.UpdateOrCreateTranslation(_translation)); }
public void SetUp() { _directConversion = Substitute.For <IDirectConversion>(); _newDirectConversionJobStart = new NewDirectConversionJobStartTestClass(_directConversion); }
public NewDirectConversionJobStartTestClass(IJobInfoQueue jobInfoQueue, IMaybePipedApplicationStarter maybePipedApplicationStarter, IJobInfoManager jobInfoManager, IDirectConversion directConversion) : base(jobInfoQueue, maybePipedApplicationStarter, jobInfoManager, directConversion) { }
public NewDirectConversionJobStartTestClass(IDirectConversion directConversion) : this(Substitute.For <IJobInfoQueue>(), Substitute.For <IMaybePipedApplicationStarter>(), Substitute.For <IJobInfoManager>(), directConversion) { }