public void SetUp()
        {
            var bootstrapper = new IntegrationTestBootstrapper();
            var container    = bootstrapper.ConfigureContainer();

            _th = container.GetInstance <TestHelper>();
            _th.InitTempFolder("PsFileHelperTest");
            _testSpoolfolder = Path.Combine(_th.TmpTestFolder, "TestSpoolFolder");
            _th.GenerateGsJob(PSfiles.PDFCreatorTestpage, OutputFormat.Pdf);
            _psTestFile = _th.TmpPsFiles[0];

            var settingsProvider = Substitute.For <ISettingsProvider>();
            var settings         = new PdfCreatorSettings(Substitute.For <IStorage>());

            settingsProvider.Settings.Returns(settings);

            _directConversionBase = new PsDirectConversion(settingsProvider, new JobInfoManager(null));
        }
 public DirectConversionProvider(PdfDirectConversion pdfConversion, PsDirectConversion psConversion)
 {
     _pdfConversion = pdfConversion;
     _psConversion  = psConversion;
 }
Example #3
0
 public NewPsJobStart(IJobInfoQueue jobInfoQueue, ISpoolerProvider spoolerProvider,
                      IMaybePipedApplicationStarter maybePipedApplicationStarter, IJobInfoManager jobInfoManager, PsDirectConversion directConversion)
     : base(jobInfoQueue, maybePipedApplicationStarter, jobInfoManager)
 {
     DirectConversionBase = directConversion;
 }