Exemple #1
0
        public void Should_Not_Set_Properties_If_Entity_Does_Not_Use_NodeIdAttribute()
        {
            var entity = new NonEntity();

            EntityAccessor.SetNodeId(entity, 1);

            Assert.AreEqual(0, entity.Id);
        }
Exemple #2
0
        public void Should_Set_Entity_Node_Id()
        {
            var entity = new Entity();

            EntityAccessor.SetNodeId(entity, 1);

            Assert.AreEqual(1, entity.Id);
        }