public Bucket[] ListBuckets() { var json = HttpHelper.Get(_bucketUri, _username, _password); return JsonHelper.Deserialize<Bucket[]>(json); }
public void When_Listing_Buckets_With_Invalid_Config_Argument_Exception_Is_Thrown() { var config = new CouchbaseClientConfiguration(); config.Urls.Add(new Uri(ConfigurationManager.AppSettings["CouchbaseServerUrl"] + "/doesnotexist/")); config.Bucket = "default"; var server = new CouchbaseCluster(config); var buckets = server.ListBuckets(); }