public void must_map_by_interface_property() { var map = new ExtendedClassMap<C>(); map.standard(); var p = map.GetAllProperties().First(x => x.Name == "IP"); Assert.AreEqual("ip1", p.Columns.FirstOrDefault().Name); }
public void must_not_map_not_mapped_property() { var map = new ExtendedClassMap<C>(); map.standard(); Assert.Null(map.GetAllProperties().FirstOrDefault(x => x.Name == "NP")); }
public void must_map_by_direct_property(){ var map = new ExtendedClassMap<C>(); map.standard(); var p = map.GetAllProperties().First(x => x.Property.Name == "CP"); Assert.AreEqual("ip2", p.ColumnNames.List().FirstOrDefault()); }