public void ReturnsRegisteredFkProperty() { var finder = new ForeignKeyFinderFinder(); finder.RegisterForeignKey(typeof(Person), "_AddressId", "Address"); Assert.Equal("_AddressId", finder.Find(typeof(Person).GetProperty("Address")).Name); }
public void ReturnsDefaultFkProperty() { var finder = new ForeignKeyFinderFinder(); var prop = finder.Find(typeof(Person).GetProperty("Address")); Assert.Equal("AddressId", prop.Name); }
public void ReturnsDefaultFkProperty() { var finder = new ForeignKeyFinderFinder(); var prop = finder.Find(typeof (Person).GetProperty("Address")); Assert.Equal("AddressId", prop.Name); }