Ejemplo n.º 1
0
 protected override void SetupServices(IServiceManager serviceManager, ITestInput testInput)
 {
     base.SetupServices(serviceManager, testInput);
     serviceManager
     .AddWindowsRInterpretersServices()
     .AddWindowsHostClientServices()
     .AddService <IRSettings>(RSettingsStubFactory.CreateForExistingRPath(testInput.FileSytemSafeName));
 }
Ejemplo n.º 2
0
        protected override void AddValues(CompositionContainer container)
        {
            base.AddValues(container);
            var coreShell = new TestCoreShell(container);
            var batch     = new CompositionBatch()
                            .AddValue <IRSettings>(RSettingsStubFactory.CreateForExistingRPath())
                            .AddValue <ICoreShell>(coreShell)
                            .AddValue(coreShell);

            container.Compose(batch);
        }
Ejemplo n.º 3
0
            public override Task <Task <RunSummary> > InitializeAsync(ITestInput testInput, IMessageBus messageBus)
            {
                var coreShell = new TestCoreShell(CompositionContainer, _coreServices);
                var batch     = new CompositionBatch()
                                .AddValue <IRSettings>(RSettingsStubFactory.CreateForExistingRPath(testInput.FileSytemSafeName))
                                .AddValue <ICoreShell>(coreShell)
                                .AddValue(coreShell);

                CompositionContainer.Compose(batch);
                return(base.InitializeAsync(testInput, messageBus));
            }
Ejemplo n.º 4
0
 protected override void SetupServices(IServiceManager serviceManager, ITestInput testInput)
 {
     base.SetupServices(serviceManager, testInput);
     serviceManager
     .AddWindowsRInterpretersServices()
     .AddWindowsHostClientServices()
     .AddWindowsRComponentsServices()
     .AddService <IStatusBar, TestStatusBar>()
     .AddService <IRPlotExportDialog, TestPlotExportDialog>()
     .AddService(RSettingsStubFactory.CreateForExistingRPath(testInput.FileSytemSafeName));
 }
Ejemplo n.º 5
0
 protected override void AddExports(CompositionBatch batch)
 {
     batch.AddValue <IRSettings>(RSettingsStubFactory.CreateForExistingRPath(_testInput.FileSytemSafeName));
 }