Beispiel #1
0
        public void Get()
        {
            DefaultProfile.ClearDefaultProfile();

            string         regionId        = "cn-hangzhou";
            string         accessKeyId     = "accessKeyId";
            string         accessKeysecret = "accessKeysecret";
            DefaultProfile profile         = DefaultProfile.GetProfile(regionId, accessKeyId, accessKeysecret);

            Assert.Equal(regionId, profile.GetRegionId());
            Assert.Equal(FormatType.XML, profile.GetFormat());

            Assert.IsType <Credential>(profile.GetCredential());
        }