public void WhenAssignFKToWhiteSpacesThenAssignNone() { var hbm = new HbmKey(); var km = new KeyMapper(typeof(Animal), hbm); km.ForeignKey(" "); hbm.foreignkey.Should().Be("none"); }
public void WhenAssignFKToValidNameThenAssignName() { var hbm = new HbmKey(); var km = new KeyMapper(typeof(Animal), hbm); km.ForeignKey("FKDeLaPizza"); hbm.foreignkey.Should().Be("FKDeLaPizza"); }
public void WhenAssignFKToNullThenSetToNull() { var hbm = new HbmKey(); hbm.foreignkey = "aPreviousValue"; var km = new KeyMapper(typeof(Animal), hbm); km.ForeignKey(null); hbm.foreignkey.Should().Be.Null(); }