Esempio n. 1
0
        public void CreateMappingTest()
        {
            XNamespace name = "urn:nhibernate-configuration-2.2";
            XElement   sessionFactoryEelement =
                new XElement(name + "sessionFactory",
                             new XElement(name + "property", new XAttribute("name", "name"), new XText("values")),
                             new XElement(name + "mapping", new XAttribute("assembly", "name"), new XText("orname.core.dll"))
                             );

            MappingCollection target = new MappingCollection(sessionFactoryEelement);
            var actual = target.CreateMapping();

            Assert.AreEqual(name, actual.Element.Name.Namespace);
        }
        public void CreateMappingTest()
        {
            XNamespace name = "urn:nhibernate-configuration-2.2";
            XElement sessionFactoryEelement =
               new XElement(name + "sessionFactory",
                            new XElement(name + "property", new XAttribute("name", "name"), new XText("values")),
                            new XElement(name + "mapping", new XAttribute("assembly", "name"), new XText("orname.core.dll"))
                   );

            MappingCollection target = new MappingCollection(sessionFactoryEelement);
            var actual = target.CreateMapping();

            Assert.AreEqual(name, actual.Element.Name.Namespace);
        }