Пример #1
0
 /// <summary>
 /// 赋予被授权者所有的权限
 /// <see href="Model.Tag.GrantAccount"/>
 /// </summary>
 /// <param name="grantAccount"></param>
 public void SetXCosReadWrite(GrantAccount grantAccount)
 {
     if (grantAccount != null)
     {
         SetRequestHeader(CosRequestHeaderKey.X_COS_GRANT_FULL_CONTROL, grantAccount.GetGrantAccounts());
     }
 }
Пример #2
0
 public void setXCosGrantWrite(GrantAccount grantAccount)
 {
     if (grantAccount != null)
     {
         SetRequestHeader(CosRequestHeaderKey.X_COS_GRANT_WRITE, grantAccount.GetGrantAccounts());
     }
 }
Пример #3
0
 /// <summary>
 /// 赋予被授权者读的权限
 /// <see href="Model.Tag.GrantAccount"/>
 /// </summary>
 /// <param name="grantAccount"></param>
 public void SetXCosGrantRead(GrantAccount grantAccount)
 {
     if (grantAccount != null)
     {
         SetRequestHeader(CosRequestHeaderKey.X_COS_GRANT_READ, grantAccount.GetGrantAccounts());
     }
 }
Пример #4
0
        public void AddGrantAccountTest()
        {
            GrantAccount target   = new GrantAccount(); // TODO: Initialize to an appropriate value
            string       ownerUin = string.Empty;       // TODO: Initialize to an appropriate value
            string       subUin   = string.Empty;       // TODO: Initialize to an appropriate value

            target.AddGrantAccount(ownerUin, subUin);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }
Пример #5
0
        public static void testGrantAccount()
        {
            GrantAccount grantAccount = new GrantAccount();

            grantAccount.AddGrantAccount("1131975903", "1131975903");
            grantAccount.AddGrantAccount("333", "555");
            grantAccount.AddGrantAccount("666", "777");
            Console.WriteLine(grantAccount.GetGrantAccounts());
        }
Пример #6
0
        public void GetGrantAccountsTest()
        {
            GrantAccount target   = new GrantAccount(); // TODO: Initialize to an appropriate value
            string       expected = string.Empty;       // TODO: Initialize to an appropriate value
            string       actual;

            actual = target.GetGrantAccounts();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
Пример #7
0
        public void GrantAccountConstructorTest()
        {
            GrantAccount target = new GrantAccount();

            Assert.Inconclusive("TODO: Implement code to verify target");
        }
Пример #8
0
        public void testGrantAccount()
        {
            GrantAccount grantAccount = new GrantAccount();

            grantAccount.AddGrantAccount("1131975903", "1131975903");
        }