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

            mapper.Fetch(FetchKind.Select);
            hbmJoin.fetch.Should().Be(HbmJoinFetch.Select);
        }
Example #2
0
        public void CanSetFetch()
        {
            var mapdoc  = new HbmMapping();
            var hbmJoin = new HbmJoin();
            var mapper  = new JoinMapper(typeof(MyClass), "AA", hbmJoin, mapdoc);

            mapper.Fetch(FetchKind.Select);
            Assert.That(hbmJoin.fetch, Is.EqualTo(HbmJoinFetch.Select));
        }