Пример #1
0
 public TestPageHelper(ISpoolerProvider spoolerProvider, IJobInfoQueue jobInfoQueue, IJobInfoManager jobInfoManager, TestPageCreator testPageCreator)
 {
     _jobInfoQueue    = jobInfoQueue;
     _jobInfoManager  = jobInfoManager;
     _testPageCreator = testPageCreator;
     _spoolFolder     = spoolerProvider.SpoolFolder;
 }
 public CheckSpoolFolderCondition(ISpoolFolderAccess spoolFolderAccess, IRepairSpoolFolderAssistant repairSpoolFolderAssistant, ITranslationFactory translationFactory, ISpoolerProvider spoolerProvider)
 {
     _spoolFolderAccess          = spoolFolderAccess;
     _repairSpoolFolderAssistant = repairSpoolFolderAssistant;
     _translation     = translationFactory.CreateTranslation <ApplicationTranslation>();
     _spoolerProvider = spoolerProvider;
 }
Пример #3
0
 public CheckSpoolFolderCondition(ISpoolFolderAccess spoolFolderAccess, IRepairSpoolFolderAssistant repairSpoolFolderAssistant, ApplicationTranslation translation, ISpoolerProvider spoolerProvider)
 {
     _spoolFolderAccess          = spoolFolderAccess;
     _repairSpoolFolderAssistant = repairSpoolFolderAssistant;
     _translation     = translation;
     _spoolerProvider = spoolerProvider;
 }
 public CheckSpoolFolderCondition(ISpoolFolderAccess spoolFolderAccess, IRepairSpoolFolderAssistant repairSpoolFolderAssistant, ITranslator translator, ISpoolerProvider spoolerProvider)
 {
     _spoolFolderAccess          = spoolFolderAccess;
     _repairSpoolFolderAssistant = repairSpoolFolderAssistant;
     _translator      = translator;
     _spoolerProvider = spoolerProvider;
 }
Пример #5
0
 protected NewDirectConversionJobStart(IJobInfoQueue jobInfoQueue,
                                       IMaybePipedApplicationStarter maybePipedApplicationStarter, ISpoolerProvider spoolerProvider, IJobInfoManager jobInfoManager)
     : base(maybePipedApplicationStarter)
 {
     _jobInfoQueue    = jobInfoQueue;
     _spoolerProvider = spoolerProvider;
     _jobInfoManager  = jobInfoManager;
 }
Пример #6
0
 public NewPrintJobStart(ISettingsProvider settingsProvider, IJobInfoQueue jobInfoQueue, ISpoolerProvider spoolerProvider, IMaybePipedApplicationStarter maybePipedApplicationStarter, IJobInfoManager jobInfoManager)
     : base(maybePipedApplicationStarter)
 {
     _settingsProvider = settingsProvider;
     _jobInfoQueue     = jobInfoQueue;
     _spoolerProvider  = spoolerProvider;
     _jobInfoManager   = jobInfoManager;
 }
Пример #7
0
 public DirectConversionHelper(IDirectConversionProvider provider, IJobInfoQueue jobInfoQueue, ISettingsProvider settingsProvider, ISpoolerProvider spoolerProvider, IJobInfoManager jobInfoManager)
 {
     _provider         = provider;
     _jobInfoQueue     = jobInfoQueue;
     _settingsProvider = settingsProvider;
     _spoolerProvider  = spoolerProvider;
     _jobInfoManager   = jobInfoManager;
 }
Пример #8
0
 public TestPageHelper(IAssemblyHelper assemblyHelper, IOsHelper osHelper, ISpoolerProvider spoolerProvider, IJobInfoQueue jobInfoQueue, IJobInfoManager jobInfoManager)
 {
     _assemblyHelper = assemblyHelper;
     _osHelper       = osHelper;
     _jobInfoQueue   = jobInfoQueue;
     _jobInfoManager = jobInfoManager;
     _spoolFolder    = spoolerProvider.SpoolFolder;
 }
Пример #9
0
 public TestPageHelper(IVersionHelper versionHelper, IOsHelper osHelper, ISpoolerProvider spoolerProvider,
                       IJobInfoQueue jobInfoQueue, IJobInfoManager jobInfoManager, ApplicationNameProvider applicationNameProvider)
 {
     _versionHelper           = versionHelper;
     _osHelper                = osHelper;
     _jobInfoQueue            = jobInfoQueue;
     _jobInfoManager          = jobInfoManager;
     _applicationNameProvider = applicationNameProvider;
     _spoolFolder             = spoolerProvider.SpoolFolder;
 }
Пример #10
0
 public PdfCreatorAdapter(IFile file, IPathSafe pathSafe, PrintFileHelperComFactory printFileHelperComFactory, IJobInfoQueue jobInfoQueue, ISpoolerProvider spoolerProvider, ISpoolFolderAccess spoolFolderAccess, IJobInfoManager jobInfoManager, IDirectConversionProvider directConversionProvider, IPrinterHelper printerHelper, IPipeServerManager pipeServerManager)
 {
     PrinterHelper = printerHelper;
     _file         = file;
     _pathSafe     = pathSafe;
     _printFileHelperComFactory = printFileHelperComFactory;
     _jobInfoQueue             = jobInfoQueue;
     _spoolerProvider          = spoolerProvider;
     _spoolFolderAccess        = spoolFolderAccess;
     _jobInfoManager           = jobInfoManager;
     _directConversionProvider = directConversionProvider;
     _pipeServerManager        = pipeServerManager;
 }
Пример #11
0
        public RepairSpoolFolderAssistant(IInteractionInvoker interactionInvoker, ITranslator translator,
                                          ISpoolerProvider spoolerProvider, IShellExecuteHelper shellExecuteHelper, IPath path, IFile file,
                                          IEnvironment environment, IAssemblyHelper assemblyHelper)
        {
            _interactionInvoker = interactionInvoker;
            _translator         = translator;
            _shellExecuteHelper = shellExecuteHelper;
            _path           = path;
            _file           = file;
            _environment    = environment;
            _assemblyHelper = assemblyHelper;

            _tempFolder = _path.GetFullPath(_path.Combine(spoolerProvider.SpoolFolder, ".."));
        }
        public void Setup()
        {
            Fixture = new Fixture().Customize(new AutoNSubstituteCustomization());
            Fixture.Inject <IPathSafe>(new PathWrapSafe());
            FileMock            = Fixture.Freeze <IFile>();
            _directoryMock      = Fixture.Freeze <IDirectory>();
            _spoolerProvider    = Fixture.Freeze <ISpoolerProvider>();
            _jobInfoManagerMock = Fixture.Freeze <IJobInfoManager>();
            var settingsProviderMock = Fixture.Freeze <ISettingsProvider>();

            settingsProviderMock.Settings.Returns(new PdfCreatorSettings(null));
            _spoolerProvider.SpoolFolder.Returns(Fixture.CreateFolderPath("SpoolFolder"));
            Fixture.Register(BuildDirectConversion);
        }
        public RepairSpoolFolderAssistant(IInteractionInvoker interactionInvoker, ITranslationUpdater translationUpdater,
                                          ISpoolerProvider spoolerProvider, IShellExecuteHelper shellExecuteHelper, IPath path, IFile file,
                                          IEnvironment environment, IAssemblyHelper assemblyHelper)
        {
            _interactionInvoker = interactionInvoker;
            translationUpdater.RegisterAndSetTranslation(tf => _translation = tf.UpdateOrCreateTranslation(_translation));
            _shellExecuteHelper = shellExecuteHelper;
            _path           = path;
            _file           = file;
            _environment    = environment;
            _assemblyHelper = assemblyHelper;

            _tempFolder = _path.GetFullPath(_path.Combine(spoolerProvider.SpoolFolder, ".."));
        }
Пример #14
0
 public DirectConversionInfFileHelper(
     IDirectConversionHelper directConversionHelper,
     IJobInfoManager jobInfoManager,
     ISpoolerProvider spoolerProvider,
     IFile file,
     IDirectory directory,
     IPath path
     )
 {
     _directConversionHelper = directConversionHelper;
     _jobInfoManager         = jobInfoManager;
     _spoolerProvider        = spoolerProvider;
     _file      = file;
     _directory = directory;
     _path      = path;
 }
Пример #15
0
 public SpoolFolderAccess(ISpoolerProvider spoolerProvider, IDirectory directory)
 {
     _spoolerProvider = spoolerProvider;
     _directory       = directory;
 }
Пример #16
0
 public PsDirectConversion(ISettingsProvider settingsProvider, IJobInfoManager jobInfoManager, ISpoolerProvider spoolerProvider, IFile file, IDirectory directory, IPathSafe path) : base(settingsProvider, jobInfoManager, spoolerProvider)
 {
     File      = file;
     Directory = directory;
     Path      = path;
 }
 public PdfCreatorCleanUp(ITempFolderProvider tempFolderProvider, ISpoolerProvider spoolFolderProvider)
 {
     _tempFolderProvider  = tempFolderProvider;
     _spoolFolderProvider = spoolFolderProvider;
     _timeSpan            = TimeSpan.FromDays(1);
 }
Пример #18
0
 public SpooledJobFinder(ISpoolerProvider spoolerProvider, IDirectory directory, IJobInfoManager jobInfoManager)
 {
     _spoolerProvider = spoolerProvider;
     _directory       = directory;
     _jobInfoManager  = jobInfoManager;
 }
Пример #19
0
 public PdfDirectConversion(IPdfProcessor pdfProcessor, ISettingsProvider settingsProvider, IJobInfoManager jobInfoManager, ISpoolerProvider spoolerProvider, IFile file, IDirectory directory, IPathSafe path) : base(settingsProvider, jobInfoManager, spoolerProvider)
 {
     _pdfProcessor = pdfProcessor;
     File          = file;
     Directory     = directory;
     Path          = path;
 }
 public void Setup()
 {
     _spoolFolderAccess          = Substitute.For <ISpoolFolderAccess>();
     _repairSpoolFolderAssistant = Substitute.For <IRepairSpoolFolderAssistant>();
     _spoolerProvider            = Substitute.For <ISpoolerProvider>();
 }
Пример #21
0
 public PdfCreatorFolderCleanUp(ITempFolderProvider tempFolderProvider, ISpoolerProvider spoolFolderProvider, IFolderCleaner folderCleaner)
 {
     _tempFolderProvider  = tempFolderProvider;
     _spoolFolderProvider = spoolFolderProvider;
     _folderCleaner       = folderCleaner;
 }
Пример #22
0
 public NewPdfJobStart(IJobInfoQueue jobInfoQueue, ISpoolerProvider spoolerProvider,
                       IMaybePipedApplicationStarter maybePipedApplicationStarter, IJobInfoManager jobInfoManager, PdfDirectConversion directConversion)
     : base(jobInfoQueue, maybePipedApplicationStarter, jobInfoManager)
 {
     DirectConversionBase = directConversion;
 }
Пример #23
0
 public JobFolderBuilder(IDirectory directory, IUniqueDirectory uniqueDirectory, ISpoolerProvider spoolerProvider)
 {
     _directory       = directory;
     _uniqueDirectory = uniqueDirectory;
     _spoolerProvider = spoolerProvider;
 }
Пример #24
0
 protected DirectConversionBase(ISettingsProvider settingsProvider, IJobInfoManager jobInfoManager, ISpoolerProvider spoolerProvider)
 {
     _settingsProvider = settingsProvider;
     _jobInfoManager   = jobInfoManager;
     _spoolerProvider  = spoolerProvider;
 }
Пример #25
0
 public SpoolFolderAccess(ISpoolerProvider spoolerProvider, IDirectory directory, IDirectoryAccessControl directoryAccess)
 {
     _spoolerProvider = spoolerProvider;
     _directory       = directory;
     _directoryAccess = directoryAccess;
 }