public void ShouldWriteKeyProperties() { var mapping = new CompositeIdMapping(); mapping.AddKey(new KeyPropertyMapping()); writer.VerifyXml(mapping) .Element("key-property").Exists(); }
public void ShouldWriteKeyManyToOnes() { var mapping = new CompositeIdMapping(); mapping.AddKey(new KeyManyToOneMapping()); writer.VerifyXml(mapping) .Element("key-many-to-one").Exists(); }
public void KeyManyToOnesCollectionHasSameCountAsMapping() { mapping.AddKey(new KeyManyToOneMapping()); inspector.KeyManyToOnes.Count().ShouldEqual(1); }