public void It_Fails_If_There_Is_No_KeyType()
        {
            Entity parentEntity = new EntityImpl();
            Component component = new ComponentImpl { Name = "Component_Name" };
            parentEntity.AddComponent(component);
            Property prop = new PropertyImpl { Name = "Property1" };
            parentEntity.AddProperty(prop);

            new EntitySetDeserialisationScheme().DeserialiseKey(NoTypeXml.GetXmlDocRoot(), parentEntity);
        }
        public void It_Should_Create_This()
        {
            Entity parentEntity = new EntityImpl();
            Component component = new ComponentImpl {Name = "Component_Name"};
            parentEntity.AddComponent(component);
            Property prop = new PropertyImpl { Name = "Property1" };
            parentEntity.AddProperty(prop);

            EntityKey key = new EntitySetDeserialisationScheme().DeserialiseKey(FullEntityXml.GetXmlDocRoot(), parentEntity);

            Assert.That(key.Properties.Count(), Is.EqualTo(1));
            Assert.That(key.Properties.ElementAt(0), Is.SameAs(prop));
            Assert.That(key.Component, Is.SameAs(component));

            Assert.That(key.KeyType, Is.EqualTo(EntityKeyType.Properties));
        }