示例#1
0
        public void Start_And_Stop_PostgreSQL_latest()
        {
            var db = new PostgresDatabase(
                databaseName: "PostgreSQL_latest",
                postgresUser: "******",
                password: "******");

            var result = db.StartDatabase();

            _output.WriteLine(result);

            db.StopDatabase();
        }
示例#2
0
        public void Start_And_Stop_PostgreSQL_alpine()
        {
            var db = new PostgresDatabase(
                "PostgreSQL_alpine",
                "Db_user",
                "Password1",
                tagName: "alpine");

            var result = db.StartDatabase();

            _output.WriteLine(result);

            db.StopDatabase();
        }
        public void Start_And_Delete_NonOfficialPostgreSQL_latest()
        {
            var db = new PostgresDatabase(
                databaseName: "Bitnami_PostgreSQL_latest",
                postgresUser: "******",
                password: "******",
                imageName: "bitnami/postgresql");

            var result = db.StartDatabase();

            _output.WriteLine(result);

            db.DeleteDatabase();
        }