public void WhenExplicitDeclaredThenRecognizePoid() { var orm = new ObjectRelationalMapper(); orm.Poid <MyClass>(mc => mc.EMail); orm.IsPersistentId(typeof(MyClass).GetProperty("EMail")).Should().Be.True(); }
public void WhenNotExplicitDeclaredThenNotRecognizePoid() { var orm = new ObjectRelationalMapper(); orm.IsPersistentId(typeof(MyClass).GetProperty("EMail")).Should().Be.False(); }
public void RecognizePoidAsPersistentId() { PropertyInfo pi = typeof(TestEntity).GetProperty("Id"); mapper.IsPersistentId(pi).Should().Be.True(); }