Пример #1
0
        public void CanSetCatalog()
        {
            var mapdoc  = new HbmMapping();
            var hbmJoin = new HbmJoin();
            var mapper  = new JoinMapper(typeof(MyClass), "AA", hbmJoin, mapdoc);

            mapper.Catalog("pizza");
            hbmJoin.catalog.Should().Be("pizza");
        }
Пример #2
0
        public void CanSetCatalog()
        {
            var mapdoc  = new HbmMapping();
            var hbmJoin = new HbmJoin();
            var mapper  = new JoinMapper(typeof(MyClass), "AA", hbmJoin, mapdoc);

            mapper.Catalog("pizza");
            Assert.That(hbmJoin.catalog, Is.EqualTo("pizza"));
        }