public void Can_create_master_connection_string()
        {
            using var connection = new NpgsqlRelationalConnection(CreateDependencies());
            using var master     = connection.CreateMasterConnection();

            Assert.Equal(@"Host=localhost;Database=postgres;Username=some_user;Password=some_password;Pooling=False;Multiplexing=False", master.ConnectionString);
        }
 public void Can_create_master_connection_string()
 {
     using (var connection = new NpgsqlRelationalConnection(CreateOptions(), new Logger <NpgsqlConnection>(new LoggerFactory())))
     {
         using (var master = connection.CreateMasterConnection())
         {
             Assert.Equal(@"Host=localhost;Database=postgres;Username=some_user;Password=some_password;Pooling=False", master.ConnectionString);
         }
     }
 }
        public void Can_create_master_connection_string_with_alternate_admin_db()
        {
            var options = new DbContextOptionsBuilder()
                          .UseNpgsql(
                @"Host=localhost;Database=NpgsqlConnectionTest;Username=some_user;Password=some_password",
                b => b.UseAdminDatabase("template0"))
                          .Options;

            using var connection = new NpgsqlRelationalConnection(CreateDependencies(options));
            using var master     = connection.CreateMasterConnection();

            Assert.Equal(@"Host=localhost;Database=template0;Username=some_user;Password=some_password;Pooling=False;Multiplexing=False", master.ConnectionString);
        }