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 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 }; }