public void CanSetSqlSubselect()
        {
            var mapdoc  = new HbmMapping();
            var hbmJoin = new HbmJoin();
            var mapper  = new JoinMapper(typeof(MyClass), "AA", hbmJoin, mapdoc);

            mapper.Subselect("blah");

            hbmJoin.Subselect.Should().Not.Be.Null();
            hbmJoin.subselect.Text[0].Should().Be("blah");
        }
Beispiel #2
0
        public void CanSetSqlSubselect()
        {
            var mapdoc  = new HbmMapping();
            var hbmJoin = new HbmJoin();
            var mapper  = new JoinMapper(typeof(MyClass), "AA", hbmJoin, mapdoc);

            mapper.Subselect("blah");

            Assert.That(hbmJoin.Subselect, Is.Not.Null);
            Assert.That(hbmJoin.subselect.Text[0], Is.EqualTo("blah"));
        }