public override Task <Task <RunSummary> > InitializeAsync(ITestInput testInput, IMessageBus messageBus) { var batch = new CompositionBatch() .AddValue(FileSystemStubFactory.CreateDefault()) .AddValue(_coreShell); CompositionContainer.Compose(batch); return(base.InitializeAsync(testInput, messageBus)); }
protected override void AddValues(CompositionContainer container) { base.AddValues(container); var coreShell = new TestCoreShell(container); var batch = new CompositionBatch() .AddValue(FileSystemStubFactory.CreateDefault()) .AddValue <IRSettings>(RSettingsStubFactory.CreateForExistingRPath()) .AddValue <ICoreShell>(coreShell) .AddValue(coreShell); container.Compose(batch); }
protected override void AddValues(CompositionContainer container) { base.AddValues(container); var editorShell = new TestEditorShell(container); var batch = new CompositionBatch() .AddValue(FileSystemStubFactory.CreateDefault()) .AddValue <ICoreShell>(editorShell) .AddValue <IEditorShell>(editorShell) .AddValue(editorShell); container.Compose(batch); }