public void GetInfoTest() { AccessControlPolicy target = new AccessControlPolicy(); // TODO: Initialize to an appropriate value string expected = string.Empty; // TODO: Initialize to an appropriate value string actual; actual = target.GetInfo(); Assert.AreEqual(expected, actual); Assert.Inconclusive("Verify the correctness of this test method."); }
public static void testAccessControlPolicy() { AccessControlPolicy accessControlPolicy = new AccessControlPolicy(); accessControlPolicy.owner = new AccessControlPolicy.Owner(); accessControlPolicy.accessControlList = new AccessControlPolicy.AccessControlList(); accessControlPolicy.accessControlList.grants = new List <AccessControlPolicy.Grant>(); accessControlPolicy.owner.id = "qcs::cam::uin/<OwnerUin>:uin/<SubUin>"; accessControlPolicy.owner.displayName = "qcs::cam::uin/<OwnerUin>:uin/<SubUin>"; for (int i = 0; i < 3; i++) { AccessControlPolicy.Grant grant = new AccessControlPolicy.Grant(); grant.grantee = new AccessControlPolicy.Grantee(); grant.grantee.id = "qcs::cam::uin/<OwnerUin>:uin/<SubUin>"; grant.grantee.displayName = "qcs::cam::uin/<OwnerUin>:uin/<SubUin>"; grant.permission = "permission"; accessControlPolicy.accessControlList.grants.Add(grant); } Console.WriteLine(accessControlPolicy.GetInfo()); }
public override string GetResultInfo() { return(base.GetResultInfo() + (accessControlPolicy == null ? "" : "\n" + accessControlPolicy.GetInfo())); }