示例#1
0
        private EntityItemBoolType CloneEntity(EntityItemBoolType sourceEntity)
        {
            if (sourceEntity == null)
            {
                return(null);
            }

            return(new EntityItemBoolType()
            {
                datatype = sourceEntity.datatype,
                status = sourceEntity.status,
                mask = sourceEntity.mask,
                Value = sourceEntity.Value
            });
        }
        private void AssertFileEffectiveRight(EntityItemBoolType userRightItem, bool hasRight, string rightDescription)
        {
            string convertedHasRight = hasRight ? "1" : "0";

            Assert.AreEqual(convertedHasRight, userRightItem.Value, string.Format("Unexpected file effective right '{0}' found for user", rightDescription));
        }
 private void AssertFileEffectiveRight(EntityItemBoolType userRightItem, bool hasRight, string rightDescription)
 {
     string convertedHasRight = hasRight ? "1" : "0";
     Assert.AreEqual(convertedHasRight, userRightItem.Value, string.Format("Unexpected file effective right '{0}' found for user", rightDescription));
 }
 private void assertAccessToken(EntityItemBoolType accessTokenEntityItem, string expectedExistence)
 {
     Assert.IsNotNull(accessTokenEntityItem, "A null access token entity item was found.");
     Assert.AreEqual(expectedExistence, accessTokenEntityItem.Value, "An access token entity item with unexpected value was found");
 }
示例#5
0
 private void assertAccessToken(EntityItemBoolType accessTokenEntityItem, string expectedExistence)
 {
     Assert.IsNotNull(accessTokenEntityItem, "A null access token entity item was found.");
     Assert.AreEqual(expectedExistence, accessTokenEntityItem.Value, "An access token entity item with unexpected value was found");
 }
        private EntityItemBoolType CloneEntity(EntityItemBoolType sourceEntity)
        {
            if (sourceEntity == null)
                return null;

            return new EntityItemBoolType()
            {
                datatype = sourceEntity.datatype,
                status = sourceEntity.status,
                mask = sourceEntity.mask,
                Value = sourceEntity.Value
            };
        }