public void CreateAndDeleteBucketSecondRegionTest()
{
var settings = AccountSettings.Load();
//point to region (Beijing) other than Hangzhou
settings.OssEndpoint = Config.SecondEndpoint;
var ossClient = OssClientFactory.CreateOssClient(settings);
//get a random bucketName
var bucketName = OssTestUtils.GetBucketName(_className);
//assert bucket does not exist
Assert.IsFalse(OssTestUtils.BucketExists(ossClient, bucketName),
string.Format("Bucket {0} should not exist before creation", bucketName));
//create a new bucket
ossClient.CreateBucket(bucketName);
OssTestUtils.WaitForCacheExpire();
Assert.IsTrue(OssTestUtils.BucketExists(ossClient, bucketName),
string.Format("Bucket {0} should exist after creation", bucketName));
//delete the bucket
ossClient.DeleteBucket(bucketName);
OssTestUtils.WaitForCacheExpire();
Assert.IsFalse(OssTestUtils.BucketExists(ossClient, bucketName),
string.Format("Bucket {0} should not exist after deletion", bucketName));
}