Esempio n. 1
0
        public SqlServerDockerCollectionFixture()
        {
            _dockerRegistries = new TestDockerRegistries();

            var configuration = new ConfigurationBuilder()
                                .SetBasePath(Directory.GetCurrentDirectory())
                                .AddJsonFile("appsettings.json")
                                .Build();

            _settings = configuration.GetSection("SqlServerDockerSettings").Get <SqlServerDockerSettings>()
                        ?? SqlServerDockerSettings.Default;

            _dockerRegistries.RegisterSqlServer2019(_dockerClient, _settings);
        }
Esempio n. 2
0
        /// <summary>
        /// Adiciona o Registrador para SqlServer 2019
        /// </summary>
        /// <param name="testDockerRegistries"></param>
        /// <param name="dockerClient"></param>
        /// <param name="settings"></param>
        public static void RegisterSqlServer2019(this TestDockerRegistries testDockerRegistries, IDockerClient dockerClient, SqlServerDockerSettings settings)
        {
            var dockerEngine = new DockerEngine(dockerClient);

            testDockerRegistries.AddRegistry(new SQLServer2019Registry(dockerEngine, settings));
        }
Esempio n. 3
0
 /// <summary>
 /// Adiciona o Registrador para SqlServer 2019
 /// </summary>
 /// <param name="testDockerRegistries"></param>
 /// <param name="dockerEngine"></param>
 /// <param name="settings"></param>
 public static void RegisterSqlServer2019(this TestDockerRegistries testDockerRegistries, DockerEngine dockerEngine, SqlServerDockerSettings settings)
 {
     testDockerRegistries.AddRegistry(new SQLServer2019Registry(dockerEngine, settings));
 }