Esempio n. 1
0
        public void ImposeEntity_Returns_Copy_Of_Original_If_ToImpose_Null(bool imposeNullValues)
        {
            var originalEntity = new Entity()
            {
                Id = Guid.NewGuid(), LogicalName = EntityName
            };

            originalEntity.Attributes.Add(FieldName, "one");
            var imposed = originalEntity.ImposeEntity(null, imposeNullValues);

            Assert.True(EntityExtensions.SameAs(imposed, originalEntity));
        }