Example #1
0
        public void WhenExplicitDeclaredThenRecognizePoid()
        {
            var orm = new ObjectRelationalMapper();

            orm.Poid <MyClass>(mc => mc.EMail);
            orm.IsPersistentId(typeof(MyClass).GetProperty("EMail")).Should().Be.True();
        }
Example #2
0
        public void WhenNotExplicitDeclaredThenNotRecognizePoid()
        {
            var orm = new ObjectRelationalMapper();

            orm.IsPersistentId(typeof(MyClass).GetProperty("EMail")).Should().Be.False();
        }
Example #3
0
        public void RecognizePoidAsPersistentId()
        {
            PropertyInfo pi = typeof(TestEntity).GetProperty("Id");

            mapper.IsPersistentId(pi).Should().Be.True();
        }