Example #1
0
        private PlugInHost CreatePlugInHost(params Assembly[] assemblies)
        {
            var environment      = new OmniSharpEnvironment();
            var sharedTextWriter = new TestSharedTextWriter(this.TestOutput);
            var serviceProvider  = new TestServiceProvider(environment, this.LoggerFactory, sharedTextWriter);
            var compositionHost  = Startup.CreateCompositionHost(
                serviceProvider: serviceProvider,
                options: new OmniSharpOptions(),
                assemblies: assemblies);

            return(new PlugInHost(serviceProvider, compositionHost));
        }
        private CompositionHost CreatePluginHost(params Assembly[] assemblies)
        {
            var serviceProvider = new TestServiceProvider(LoggerFactory);



            return Startup.ConfigureMef(
                serviceProvider,
                new FakeOmniSharpOptions().Value,
                assemblies);
        }
Example #3
0
 public PlugInHost(TestServiceProvider serviceProvider, CompositionHost compositionHost)
 {
     this._serviceProvider = serviceProvider;
     this.CompositionHost  = compositionHost;
 }