public void BucketTest() { Mac mac = new Mac(AccessKey, SecretKey); BucketManager target = new BucketManager(mac); BucketResult result = target.Bucket(Bucket1); Assert.AreEqual((int)HttpCode.OK, result.Code); }
/// <summary> /// 获取bucket信息 /// </summary> public static void bucket() { string bkt = "test"; Mac mac = new Mac(Settings.AccessKey, Settings.SecretKey); BucketManager bm = new BucketManager(mac); var result = bm.Bucket(bkt); Console.WriteLine(result); }