Example #1
0
        CreateVersionProvider(bool enableDynamicInstall)
        {
            var commonOptions = Options.Create(new BuildScriptGeneratorOptions()
            {
                EnableDynamicInstall = enableDynamicInstall
            });
            var environment = new TestEnvironment();

            var onDiskProvider  = new TestNodeOnDiskVersionProvider();
            var storageProvider = new TestNodeSdkStorageVersionProvider(environment, new TestHttpClientFactory());
            var versionProvider = new NodeVersionProvider(
                commonOptions,
                onDiskProvider,
                storageProvider);

            return(versionProvider, onDiskProvider, storageProvider);
        }
Example #2
0
        CreateVersionProvider(bool enableDynamicInstall)
        {
            var commonOptions = Options.Create(new BuildScriptGeneratorOptions()
            {
                EnableDynamicInstall = enableDynamicInstall
            });

            var onDiskProvider  = new TestNodeOnDiskVersionProvider();
            var storageProvider = new TestNodeSdkStorageVersionProvider(
                commonOptions,
                new TestHttpClientFactory(),
                NullLoggerFactory.Instance);
            var versionProvider = new NodeVersionProvider(
                commonOptions,
                onDiskProvider,
                storageProvider,
                NullLogger <NodeVersionProvider> .Instance);

            return(versionProvider, onDiskProvider, storageProvider);
        }