Aliyun.OSS.Test.TestClass.OtherTestClass.ProxyTest.ClassInitialize C# (CSharp) Метод

ClassInitialize() приватный Метод

private ClassInitialize ( ) : void
Результат void
        public static void ClassInitialize()
        {
            //get a OSS client object
            _ossClient = OssClientFactory.CreateOssClientWithProxy();
            //get current class name, which is prefix of bucket/object
            _className = TestContext.CurrentContext.Test.FullName;
            _className = _className.Substring(_className.LastIndexOf('.') + 1).ToLowerInvariant();
            //create the bucket
            _bucketName = OssTestUtils.GetBucketName(_className);
            IOss ossClient = OssClientFactory.CreateOssClient();
            ossClient.CreateBucket(_bucketName);
        }